Module: RBS::AST::Members::LocationOnly

Included in:
Private, Public
Defined in:
lib/rbs/ast/members.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



296
297
298
# File 'lib/rbs/ast/members.rb', line 296

def location
  @location
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



302
303
304
# File 'lib/rbs/ast/members.rb', line 302

def ==(other)
  other.is_a?(self.class)
end

#hashObject



308
309
310
# File 'lib/rbs/ast/members.rb', line 308

def hash
  self.class.hash
end

#initialize(location:) ⇒ Object



298
299
300
# File 'lib/rbs/ast/members.rb', line 298

def initialize(location:)
  @location = location
end