Class: YARD::Parser::Ruby::ConditionalNode
Managing node state
collapse
Instance Method Details
#condition ⇒ Object
453
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 453
def condition; first end
|
#condition? ⇒ Boolean
452
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 452
def condition?; true end
|
#else_block ⇒ Object
456
457
458
459
460
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 456
def else_block
if self[2] && !cmod?
self[2].type == :elsif ? self[2] : self[2][0]
end
end
|
#then_block ⇒ Object
454
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 454
def then_block; self[1] end
|