class RBS::Constant
属性
entry[R]
name[R]
type[R]
公共类方法
new(name:, type:, entry:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/constant.rb, line 9 def initialize(name:, type:, entry:) @name = name @type = type @entry = entry end
公共实例方法
==(other) 点击切换源代码
# File rbs-3.8.0/lib/rbs/constant.rb, line 15 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type && other.entry == entry end
也别名为:eql?
hash() 点击切换源代码
# File rbs-3.8.0/lib/rbs/constant.rb, line 24 def hash self.class.hash ^ name.hash ^ type.hash ^ entry.hash end