Class: YARD::Parser::Ruby::ConditionalNode
Managing node state
collapse
Instance Method Details
#condition ⇒ Object
499
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 499
def condition; first end
|
#condition? ⇒ Boolean
498
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 498
def condition?; true end
|
#else_block ⇒ Object
502
503
504
505
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 502
def else_block
return unless self[2] && !cmod?
self[2].type == :elsif ? self[2] : self[2][0]
end
|
#then_block ⇒ Object
500
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 500
def then_block; self[1] end
|