In Files

  • rbs-1.0.4/lib/rbs/ast/members.rb

Methods

Class/Module Index [+]

Quicksearch

RBS::AST::Members::Attribute

Attributes

annotations[R]
comment[R]
ivar_name[R]
kind[R]
location[R]
name[R]
type[R]

Public Class Methods

new(name:, type:, ivar_name:, kind:, annotations:, location:, comment:) click to toggle source
 
               # File rbs-1.0.4/lib/rbs/ast/members.rb, line 225
def initialize(name,, type,, ivar_name,, kind,, annotations,, location,, comment))
  @name = name
  @type = type
  @ivar_name = ivar_name
  @annotations = annotations
  @location = location
  @comment = comment
  @kind = kind
end
            

Public Instance Methods

==(other) click to toggle source
 
               # File rbs-1.0.4/lib/rbs/ast/members.rb, line 235
def ==(other)
  other.is_a?(self.class) &&
    other.name == name &&
    other.type == type &&
    other.ivar_name == ivar_name &&
    other.kind == kind
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/ast/members.rb, line 245
def hash
  self.class.hash ^ name.hash ^ type.hash ^ ivar_name.hash ^ kind.hash
end