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.
301 302 303 |
# File 'lib/rbs/ast/members.rb', line 301 def location @location end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
307 308 309 |
# File 'lib/rbs/ast/members.rb', line 307 def ==(other) other.is_a?(self.class) end |
#hash ⇒ Object
313 314 315 |
# File 'lib/rbs/ast/members.rb', line 313 def hash self.class.hash end |
#initialize(location:) ⇒ Object
303 304 305 |
# File 'lib/rbs/ast/members.rb', line 303 def initialize(location:) @location = location end |