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.
324 325 326 |
# File 'lib/rbs/ast/members.rb', line 324 def location @location end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
330 331 332 |
# File 'lib/rbs/ast/members.rb', line 330 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
336 337 338 |
# File 'lib/rbs/ast/members.rb', line 336 def hash self.class.hash end |
#initialize(location:) ⇒ Object
326 327 328 |
# File 'lib/rbs/ast/members.rb', line 326 def initialize(location:) @location = location end |