Class: Red::AssignmentNode::GlobalVariableNode

Inherits:
Red::AssignmentNode show all
Defined in:
lib/red/assignment_nodes.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Red::AssignmentNode

#call_to_increment?, #compile_increment, #compile_internals, #initialize

Constructor Details

This class inherits a constructor from Red::AssignmentNode

Instance Method Details

#compile_node(options = {}) ⇒ Object



35
36
37
38
# File 'lib/red/assignment_nodes.rb', line 35

def compile_node(options = {})
  return self.compile_increment if self.call_to_increment?
  return "%s = %s" % self.compile_internals
end