Class: RBS::Types::Function::ForwardingParam
- Inherits:
-
Object
- Object
- RBS::Types::Function::ForwardingParam
- Defined in:
- lib/rbs/types.rb,
sig/types.rbs
Instance Attribute Summary collapse
-
#location ⇒ Location?
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(location:) ⇒ ForwardingParam
constructor
A new instance of ForwardingParam.
- #to_json(state = nil) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(location:) ⇒ ForwardingParam
Returns a new instance of ForwardingParam.
965 966 967 |
# File 'lib/rbs/types.rb', line 965 def initialize(location:) @location = location end |
Instance Attribute Details
#location ⇒ Location? (readonly)
Returns the value of attribute location.
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 |
#hash ⇒ Object
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_s ⇒ Object
984 985 986 |
# File 'lib/rbs/types.rb', line 984 def to_s "..." end |