Class: LibRubyParser::Nodes::Shadowarg
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Shadowarg
- 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
-
#expression_l ⇒ Loc
readonly
Location of the argument.
-
#name ⇒ String
readonly
Name of the argument.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the argument
proc { |;foo|}
~~~
3825 3826 3827 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3825 def expression_l @expression_l end |
#name ⇒ String (readonly)
Name of the argument
3816 3817 3818 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3816 def name @name end |