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.
277 278 279 |
# File 'lib/rbs/ast/members.rb', line 277 def location @location end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
283 284 285 |
# File 'lib/rbs/ast/members.rb', line 283 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
289 290 291 |
# File 'lib/rbs/ast/members.rb', line 289 def hash self.class.hash end |
#initialize(location:) ⇒ Object
279 280 281 |
# File 'lib/rbs/ast/members.rb', line 279 def initialize(location:) @location = location end |