Module: RBS::AST::Members::LocationOnly

Included in:
Private, Public
Defined in:
lib/rbs/ast/members.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



366
367
368
# File 'lib/rbs/ast/members.rb', line 366

def location
  @location
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



372
373
374
# File 'lib/rbs/ast/members.rb', line 372

def ==(other)
  other.is_a?(self.class)
end

#hashObject



378
379
380
# File 'lib/rbs/ast/members.rb', line 378

def hash
  self.class.hash
end

#initialize(location:) ⇒ Object



368
369
370
# File 'lib/rbs/ast/members.rb', line 368

def initialize(location:)
  @location = location
end