In Files

  • rbs-2.1.0/lib/rbs/ast/declarations.rb

Parent

Class/Module Index [+]

Quicksearch

RBS::AST::Declarations::Class::Super

Attributes

args[R]
location[R]
name[R]

Public Class Methods

new(name:, args:, location:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/ast/declarations.rb, line 59
def initialize(name,, args,, location))
  @name = name
  @args = args
  @location = location
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/ast/declarations.rb, line 65
def ==(other)
  other.is_a?(Super) && 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-2.1.0/lib/rbs/ast/declarations.rb, line 71
def hash
  self.class.hash ^ name.hash ^ args.hash
end
            
to_json(state = _ = nil) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/ast/declarations.rb, line 75
def to_json(state = _ = nil)
  {
    name: name,
    args: args,
    location: location
  }.to_json(state)
end