123456789_123456789_123456789_123456789_123456789_

Class: Prism::IfNode

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Node
Instance Chain:
self, Node
Inherits: Prism::Node
Defined in: lib/prism/node_ext.rb,
lib/prism/parse_result/newlines.rb

Instance Attribute Summary

Node - Inherited

Instance Method Summary

Node - Inherited

Instance Method Details

#consequent

Returns the subsequent if/elsif/else clause of the if node. This method is deprecated in favor of #subsequent.

[ GitHub ]

  
# File 'lib/prism/node_ext.rb', line 485

def consequent
  deprecated("subsequent")
  subsequent
end

#newline_flag!(lines)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/prism/parse_result/newlines.rb', line 91

def newline_flag!(lines) # :nodoc:
  predicate.newline_flag!(lines)
end