123456789_123456789_123456789_123456789_123456789_

Class: Prism::UnlessNode

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 else clause of the unless node. This method is deprecated in favor of #else_clause.

[ GitHub ]

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

def consequent
  deprecated("else_clause")
  else_clause
end

#newline_flag!(lines)

This method is for internal use only.
[ GitHub ]

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

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