Module: RBS::AST::Members::LocationOnly
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
- #initialize(location:) ⇒ Object
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
364 365 366 |
# File 'lib/rbs/ast/members.rb', line 364 def location @location end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
370 371 372 |
# File 'lib/rbs/ast/members.rb', line 370 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
376 377 378 |
# File 'lib/rbs/ast/members.rb', line 376 def hash self.class.hash end |
#initialize(location:) ⇒ Object
366 367 368 |
# File 'lib/rbs/ast/members.rb', line 366 def initialize(location:) @location = location end |