Class: Steep::TypeInference::SendArgs::PositionalArgs::NodeParamPair
- Includes:
- Equatable
- Defined in:
- lib/steep/type_inference/send_args.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(node:, param:) ⇒ NodeParamPair
constructor
A new instance of NodeParamPair.
- #to_ary ⇒ Object
Methods included from Equatable
Constructor Details
#initialize(node:, param:) ⇒ NodeParamPair
Returns a new instance of NodeParamPair.
9 10 11 12 |
# File 'lib/steep/type_inference/send_args.rb', line 9 def initialize(node:, param:) @node = node @param = param end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
6 7 8 |
# File 'lib/steep/type_inference/send_args.rb', line 6 def node @node end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
7 8 9 |
# File 'lib/steep/type_inference/send_args.rb', line 7 def param @param end |
Instance Method Details
#to_ary ⇒ Object
16 17 18 |
# File 'lib/steep/type_inference/send_args.rb', line 16 def to_ary [node, param] end |