class Regexador::Transform::Assignment

Attributes

bindings[RW]

Public Instance Methods

store() click to toggle source
# File lib/regexador_xform.rb, line 98
def store
  # puts "Storing #@var = #{@rvalue.inspect}"
  hash = self.class.bindings ||= {}

  hash[@var.to_s] = @rvalue          # Late binding
  # hash[@var.to_s] = @rvalue.to_s   # Early binding
  # Think about the difference... :)
end