Class: LibRubyParser::Nodes::Kwargs

Inherits:
LibRubyParser::Node show all
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

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

foo(bar: 1)
    ~~~~~~

Returns:



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

Returns:



2283
2284
2285
# File 'lib/lib-ruby-parser/nodes.rb', line 2283

def pairs
  @pairs
end