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.



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

def location
  @location
end

Instance Method Details

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



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

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

#hashObject



342
343
344
# File 'lib/rbs/ast/members.rb', line 342

def hash
  self.class.hash
end

#initialize(location:) ⇒ Object



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

def initialize(location:)
  @location = location
end