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.



325
326
327
# File 'lib/rbs/ast/members.rb', line 325

def location
  @location
end

Instance Method Details

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



331
332
333
# File 'lib/rbs/ast/members.rb', line 331

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

#hashObject



337
338
339
# File 'lib/rbs/ast/members.rb', line 337

def hash
  self.class.hash
end

#initialize(location:) ⇒ Object



327
328
329
# File 'lib/rbs/ast/members.rb', line 327

def initialize(location:)
  @location = location
end