class YARD::Parser::Ruby::ConditionalNode
Public Instance Methods
condition()
click to toggle source
# File lib/yard/parser/ruby/ast_node.rb, line 517 def condition; first end
condition?()
click to toggle source
# File lib/yard/parser/ruby/ast_node.rb, line 516 def condition?; true end
else_block()
click to toggle source
# File lib/yard/parser/ruby/ast_node.rb, line 520 def else_block return unless self[2] && !cmod? self[2].type == :elsif ? self[2] : self[2][0] end
then_block()
click to toggle source
# File lib/yard/parser/ruby/ast_node.rb, line 518 def then_block; self[1] end
Private Instance Methods
cmod?()
click to toggle source
# File lib/yard/parser/ruby/ast_node.rb, line 527 def cmod?; type =~ /_mod$/ end