Class: YARD::Parser::Ruby::ConditionalNode
Managing node state
collapse
Instance Method Details
#condition ⇒ Object
491
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 491
def condition; first end
|
#condition? ⇒ Boolean
490
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 490
def condition?; true end
|
#else_block ⇒ Object
494
495
496
497
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 494
def else_block
return unless self[2] && !cmod?
self[2].type == :elsif ? self[2] : self[2][0]
end
|
#then_block ⇒ Object
492
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 492
def then_block; self[1] end
|