class Riml::ControlStructure

abstract control structure

Public Instance Methods

children() click to toggle source
# File lib/riml/nodes.rb, line 775
def children
  [condition, body]
end
force_newline_if_child_call_node?() click to toggle source
# File lib/riml/nodes.rb, line 771
def force_newline_if_child_call_node?
  false
end
wrap_condition_in_parens!() click to toggle source
# File lib/riml/nodes.rb, line 779
def wrap_condition_in_parens!
  return if WrapInParensNode === condition
  _parent = condition.parent
  self.condition = WrapInParensNode.new(condition)
  self.condition.parent = _parent
end