Class: YARD::Parser::Ruby::ConditionalNode
Managing node state
collapse
Instance Method Details
#condition ⇒ Object
519
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 519
def condition; first end
|
#condition? ⇒ Boolean
518
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 518
def condition?; true end
|
#else_block ⇒ Object
522
523
524
525
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 522
def else_block
return unless self[2] && !cmod?
self[2].type == :elsif ? self[2] : self[2][0]
end
|
#then_block ⇒ Object
520
|
# File 'lib/yard/parser/ruby/ast_node.rb', line 520
def then_block; self[1] end
|