Class: YARD::Parser::Ruby::ConditionalNode
Constant Summary
Constants inherited from AstNode
Instance Method Summary
Methods inherited from AstNode
#==, #call?, #children, #comments, #comments_range, #first_line, #has_line?, #initialize, #inspect, #jump, #kw?, #line, #literal?, node_class_for, #pretty_print, #ref?, #show, #to_s, #token?, #traverse
Methods inherited from Array
Constructor Details
This class inherits a constructor from YARD::Parser::Ruby::AstNode
Instance Method Details
- (Object) condition
350 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 350 def condition; first end |
- (Boolean) condition?
349 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 349 def condition?; true end |
- (Object) else_block
353 354 355 356 357 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 353 def else_block if self[2] && !cmod? self[2].type == :elsif ? self[2] : self[2][0] end end |
- (Object) then_block
351 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 351 def then_block; self[1] end |