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