Class: Steep::TypeInference::SendArgs::PositionalArgs::NodeTypePair
- Includes:
- Equatable
- Defined in:
- lib/steep/type_inference/send_args.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(node:, type:) ⇒ NodeTypePair
constructor
A new instance of NodeTypePair.
- #node_type ⇒ Object
Methods included from Equatable
Constructor Details
#initialize(node:, type:) ⇒ NodeTypePair
Returns a new instance of NodeTypePair.
25 26 27 28 |
# File 'lib/steep/type_inference/send_args.rb', line 25 def initialize(node:, type:) @node = node @type = type end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
22 23 24 |
# File 'lib/steep/type_inference/send_args.rb', line 22 def node @node end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
23 24 25 |
# File 'lib/steep/type_inference/send_args.rb', line 23 def type @type end |