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 364
attr_reader :location
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 370
def ==(other) other.is_a?(self.class) end
#eql?(other)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 374
alias eql? ==
#hash
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 376
def hash self.class.hash end
#initialize(location:)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 366
def initialize(location:) @location = location end