Class: LibRubyParser::Nodes::Blockarg
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Blockarg
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a &blk
argument in the method definition (but not in the method call, see BlockPass
)
Instance Attribute Summary collapse
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#name ⇒ String?
readonly
Name of the argument,
String("foo")
fordef m(&foo)
. -
#name_l ⇒ Loc?
readonly
Location of the name.
-
#operator_l ⇒ Loc
readonly
Location of the
&
operator.
Instance Attribute Details
#expression_l ⇒ Loc (readonly)
Location of the full expression
def m(&foo); end
~~~~
435 436 437 |
# File 'lib/lib-ruby-parser/nodes.rb', line 435 def expression_l @expression_l end |
#name ⇒ String? (readonly)
Name of the argument, String("foo")
for def m(&foo)
408 409 410 |
# File 'lib/lib-ruby-parser/nodes.rb', line 408 def name @name end |
#name_l ⇒ Loc? (readonly)
Location of the name
def m(&foo); end
~~~
426 427 428 |
# File 'lib/lib-ruby-parser/nodes.rb', line 426 def name_l @name_l end |
#operator_l ⇒ Loc (readonly)
Location of the &
operator
def m(&foo); end
~
417 418 419 |
# File 'lib/lib-ruby-parser/nodes.rb', line 417 def operator_l @operator_l end |