123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Object
Defined in: lib/rbs/types.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(location:) ⇒ ForwardingParam

[ GitHub ]

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

def initialize(location:)
  @location = location
end

Instance Attribute Details

#location (readonly)

[ GitHub ]

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

attr_reader :location

Instance Method Details

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

[ GitHub ]

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

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

#eql?(other)

[ GitHub ]

  
# File 'lib/rbs/types.rb', line 973

alias eql? ==

#hash

[ GitHub ]

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

def hash
  self.class.hash
end

#to_json(state = nil)

[ GitHub ]

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

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

#to_s

[ GitHub ]

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

def to_s
  "..."
end