Class: LibRubyParser::Nodes::Shadowarg

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

Overview

Represents a special block argument that "shadows" outer variable (i.e. |;foo|)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the argument

proc { |;foo|}
         ~~~

Returns:



3825
3826
3827
# File 'lib/lib-ruby-parser/nodes.rb', line 3825

def expression_l
  @expression_l
end

#nameString (readonly)

Name of the argument

Returns:

  • (String)


3816
3817
3818
# File 'lib/lib-ruby-parser/nodes.rb', line 3816

def name
  @name
end