123456789_123456789_123456789_123456789_123456789_

Module: RBS::AST::Members::Mixin

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rbs/ast/members.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#annotations (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 146

attr_reader :annotations

#args (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 145

attr_reader :args

#comment (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 148

attr_reader :comment

#location (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 147

attr_reader :location

#name (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 144

attr_reader :name

Instance Method Details

#==(other)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 158

def ==(other)
  other.is_a?(self.class) && other.name == name && other.args == args
end

#eql?(other) ⇒ Boolean

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 162

def eql?(other)
  self == other
end

#hash

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 166

def hash
  self.class.hash ^ name.hash ^ args.hash
end

#initialize(name:, args:, annotations:, location:, comment:)

[ GitHub ]

  
# File 'lib/rbs/ast/members.rb', line 150

def initialize(name:, args:, annotations:, location:, comment:)
  @name = name
  @args = args
  @annotations = annotations
  @location = location
  @comment = comment
end