Class: YARD::Parser::Ruby::LoopNode
- Inherits:
-
KeywordNode
- Object
- Array
- AstNode
- KeywordNode
- YARD::Parser::Ruby::LoopNode
- Defined in:
- lib/yard/parser/ruby/ast_node.rb
Managing node state collapse
Constructor Details
This class inherits a constructor from YARD::Parser::Ruby::AstNode
Instance Method Details
permalink #block ⇒ Object
[View source]
544 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 544 def block; last end |
permalink #condition ⇒ Object
[View source]
543 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 543 def condition; type == :for ? s(self[0], self[1]) : first end |
permalink #loop? ⇒ Boolean
542 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 542 def loop?; true end |