class RBS::Definition::Ancestor::Instance

属性

args[R]
name[R]
source[R]

公共类方法

new(name:, args:, source:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition.rb, line 195
def initialize(name:, args:, source:)
  @name = name
  @args = args
  @source = source
end

公共实例方法

==(other) 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition.rb, line 201
def ==(other)
  other.is_a?(Instance) && other.name == name && other.args == args
end
别名: eql?
eql?(other)
别名为: ==
hash() 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition.rb, line 207
def hash
  self.class.hash ^ name.hash ^ args.hash
end