Class: RBS::Types::Function::ForwardingParam

Inherits:
Object
  • Object
show all
Defined in:
lib/rbs/types.rb,
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:) ⇒ ForwardingParam

Returns a new instance of ForwardingParam.

Parameters:



965
966
967
# File 'lib/rbs/types.rb', line 965

def initialize(location:)
  @location = location
end

Instance Attribute Details

#locationLocation? (readonly)

Returns the value of attribute location.

Returns:



963
964
965
# File 'lib/rbs/types.rb', line 963

def location
  @location
end

Instance Method Details

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



969
970
971
# File 'lib/rbs/types.rb', line 969

def ==(other)
  other.is_a?(ForwardingParam)
end

#hashObject



975
976
977
# File 'lib/rbs/types.rb', line 975

def hash
  self.class.hash
end

#to_json(state = nil) ⇒ Object



979
980
981
982
# File 'lib/rbs/types.rb', line 979

def to_json(state = nil)
  json = {} #: Hash[Symbol, untyped]
  json.to_json(state)
end

#to_sObject



984
985
986
# File 'lib/rbs/types.rb', line 984

def to_s
  "..."
end