Class: LibRubyParser::Nodes::WhilePost
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::WhilePost
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a post-while loop
begin
foo
end while bar
Instance Attribute Summary collapse
-
#body ⇒ Node
readonly
Body of the loop.
-
#cond ⇒ Node
readonly
Condition of the loop.
-
#expression_l ⇒ Loc
readonly
Location of the
while
keyword. -
#keyword_l ⇒ Loc
readonly
Location of the
while
keyword.
Instance Attribute Details
#body ⇒ Node (readonly)
Body of the loop
4277 4278 4279 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4277 def body @body end |
#cond ⇒ Node (readonly)
Condition of the loop
4273 4274 4275 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4273 def cond @cond end |
#expression_l ⇒ Loc (readonly)
Location of the while
keyword
begin; foo; end while bar
~~~~~~~~~~~~~~~~~~~~~~~~~
4295 4296 4297 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4295 def expression_l @expression_l end |
#keyword_l ⇒ Loc (readonly)
Location of the while
keyword
begin; foo; end while bar
~~~~~
4286 4287 4288 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4286 def keyword_l @keyword_l end |