class RBS::Definition::Ancestor::Instance
Attributes
Public Class Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 208 def initialize(name:, args:, source:) @name = name @args = args @source = source end
Public Instance Methods
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 214 def ==(other) other.is_a?(Instance) && other.name == name && other.args == args end
Also aliased as: eql?
Source
# File bundled-src/rbs-3.10.0/lib/rbs/definition.rb, line 220 def hash self.class.hash ^ name.hash ^ args.hash end