Class: LibRubyParser::Nodes::Kwargs
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Kwargs
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents kwargs that are given to a method call, super or yield (i.e. foo(bar: 1)
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#pairs ⇒ ::Array<Node>
readonly
A list of key-value pairs.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
foo(bar: 1)
~~~~~~
2292 2293 2294 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2292 def expression_l @expression_l end |
#pairs ⇒ ::Array<Node> (readonly)
A list of key-value pairs
2283 2284 2285 |
# File 'lib/lib-ruby-parser/nodes.rb', line 2283 def pairs @pairs end |