class RBS::Definition::Ancestor::Singleton
属性
name[R]
公共类方法
new(name:) 点击切换源码
# File rbs-3.8.0/lib/rbs/definition.rb, line 215 def initialize(name:) @name = name end
公共实例方法
==(other) 点击切换源码
# File rbs-3.8.0/lib/rbs/definition.rb, line 219 def ==(other) other.is_a?(Singleton) && other.name == name end
别名:eql?
hash() 点击切换源码
# File rbs-3.8.0/lib/rbs/definition.rb, line 225 def hash self.class.hash ^ name.hash end