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

Inherits:
KeywordNode show all
Defined in:
lib/yard/parser/ruby/ast_node.rb

Constant Summary

Constants inherited from AstNode

AstNode::KEYWORDS

Instance Attribute Summary

Attributes inherited from AstNode

#docstring, #docstring_hash_flag, #docstring_range, #file, #full_source, #group, #line_range, #parent, #source, #source_range, #type

Managing node state collapse

Methods inherited from KeywordNode

#kw?

Methods inherited from AstNode

#==, #block?, #call?, #children, #condition?, #def?, #first_line, #has_line?, #initialize, #inspect, #jump, #kw?, #line, #literal?, node_class_for, #pretty_print, #ref?, #show, #to_s, #token?, #traverse, #unfreeze

Methods inherited from Array

#place

Constructor Details

This class inherits a constructor from YARD::Parser::Ruby::AstNode

Instance Method Details

#blockObject



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

def block; last end

#conditionObject



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

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

#loop?Boolean

Returns:

  • (Boolean)


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

def loop?; true end