Class: YARD::Parser::Ruby::LoopNode

Inherits:
KeywordNode show all
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

#blockObject



537
# File 'lib/yard/parser/ruby/ast_node.rb', line 537

def block; last end

#conditionObject



536
# File 'lib/yard/parser/ruby/ast_node.rb', line 536

def condition; type == :for ? s(self[0], self[1]) : first end

#loop?Boolean

Returns:

  • (Boolean)


535
# File 'lib/yard/parser/ruby/ast_node.rb', line 535

def loop?; true end