Module: RBS::AST::Members::LocationOnly
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/rbs/ast/members.rb |
Instance Attribute Summary
- #location readonly
Instance Method Summary
- #==(other) (also: #eql?)
- #eql?(other)
- #hash
- #initialize(location:)
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 330
attr_reader :location
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 336
def ==(other) other.is_a?(self.class) end
#eql?(other)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 340
alias eql? ==
#hash
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 342
def hash self.class.hash end
#initialize(location:)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 332
def initialize(location:) @location = location end