Class: LibRubyParser::Nodes::Numblock
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Numblock
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a block that takes numbered parameters (i.e. proc { _1 }
)
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc
readonly
Location of the open brace.
-
#body ⇒ Node
readonly
Block body.
-
#call ⇒ Node
readonly
Method call that takes a block.
-
#end_l ⇒ Loc
readonly
Location of the closing brace.
-
#expression_l ⇒ Loc
readonly
Location of the open brace.
-
#numargs ⇒ Integer
readonly
Number of parameters that block takes.
Instance Attribute Details
#begin_l ⇒ Loc (readonly)
Location of the open brace
proc { _1 }
~
3026 3027 3028 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3026 def begin_l @begin_l end |
#body ⇒ Node (readonly)
Block body
3017 3018 3019 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3017 def body @body end |
#call ⇒ Node (readonly)
Method call that takes a block
3009 3010 3011 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3009 def call @call end |
#end_l ⇒ Loc (readonly)
Location of the closing brace
proc { _1 }
~
3035 3036 3037 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3035 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the open brace
proc { _1 }
~~~~~~~~~~~
3044 3045 3046 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3044 def expression_l @expression_l end |
#numargs ⇒ Integer (readonly)
Number of parameters that block takes
3013 3014 3015 |
# File 'lib/lib-ruby-parser/nodes.rb', line 3013 def numargs @numargs end |