Class: LibRubyParser::Nodes::Splat

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents an arguments splat (i.e. ‘*bar` in a call like `foo(*bar)`)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

“‘text foo(*bar)

~~~~

“‘

Returns:



3851
3852
3853
# File 'lib/lib-ruby-parser/nodes.rb', line 3851

def expression_l
  @expression_l
end

#operator_lLoc (readonly)

Location of the ‘*` operator

“‘text foo(*bar)

~

“‘

Returns:



3842
3843
3844
# File 'lib/lib-ruby-parser/nodes.rb', line 3842

def operator_l
  @operator_l
end

#valueNode? (readonly)

Value that is converted to array

Returns:



3833
3834
3835
# File 'lib/lib-ruby-parser/nodes.rb', line 3833

def value
  @value
end