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.
315 316 317 |
# File 'lib/rbs/ast/members.rb', line 315 def location @location end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
321 322 323 |
# File 'lib/rbs/ast/members.rb', line 321 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
327 328 329 |
# File 'lib/rbs/ast/members.rb', line 327 def hash self.class.hash end |
#initialize(location:) ⇒ Object
317 318 319 |
# File 'lib/rbs/ast/members.rb', line 317 def initialize(location:) @location = location end |