In Files

  • rbs-1.0.4/lib/rbs/definition.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

RBS::Definition::Ancestor::Instance

Attributes

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

Public Class Methods

new(name:, args:, source:) click to toggle source
 
               # File rbs-1.0.4/lib/rbs/definition.rb, line 172
def initialize(name,, args,, source))
  @name = name
  @args = args
  @source = source
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File rbs-1.0.4/lib/rbs/definition.rb, line 178
def ==(other)
  other.is_a?(Instance) && other.name == name && other.args == args
end
            
Also aliased as: eql?
eql?(other) click to toggle source
Alias for: ==
hash() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/definition.rb, line 184
def hash
  self.class.hash ^ name.hash ^ args.hash
end