Class: RBS::Types::Function::ForwardingParam
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/rbs/types.rb |
Class Method Summary
- .new(location:) ⇒ ForwardingParam constructor
Instance Attribute Summary
- #location readonly
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
::RBS::Types::Aliasfor #==. - #hash
- #to_json(state = nil)
- #to_s
Constructor Details
.new(location:) ⇒ ForwardingParam
# 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)
::RBS::Types::Alias for #==.
# 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