Class: YARD::Parser::Ruby::ConditionalNode
  
  
  
  
    
      Managing node state
      collapse
    
    
  
  
  
  
  
  
  
  
    Instance Method Details
    
      
  
  
    #condition  ⇒ Object 
  
  
  
  
    
      
510 
     | 
    
      # File 'lib/yard/parser/ruby/ast_node.rb', line 510
def condition; first end 
     | 
  
 
    
      
  
  
    #condition?  ⇒ Boolean 
  
  
  
  
    
      
509 
     | 
    
      # File 'lib/yard/parser/ruby/ast_node.rb', line 509
def condition?; true end 
     | 
  
 
    
      
  
  
    #else_block  ⇒ Object 
  
  
  
  
    
      
513
514
515
516 
     | 
    
      # File 'lib/yard/parser/ruby/ast_node.rb', line 513
def else_block
  return unless self[2] && !cmod?
  self[2].type == :elsif ? self[2] : self[2][0]
end 
     | 
  
 
    
      
  
  
    #then_block  ⇒ Object 
  
  
  
  
    
      
511 
     | 
    
      # File 'lib/yard/parser/ruby/ast_node.rb', line 511
def then_block; self[1] end 
     |