module Temporaries
Set temporary values for the duration of a block. These may be arbitrarily nested; the innermost definition applies.
with_hash_value hash, key, value do ... end with_constant_value module, :constant, value do ... end with_attribute_value object, :attribute, value do ... end with_instance_variable_value object, :name, value do ... end with_class_variable_value object, :name, value do ... end with_global_value :name, value do ... end
There are also the lower level:
push_hash_value hash, key, value pop_hash_value hash, key push_constant_value Module, :Constant, value pop_constant_value Module, :Constant push_attribute_value object, :attribute, value pop_attribute_value object :attribute push_instance_variable_value object, :name, value pop_instance_variable_value object :name push_class_variable_value klass, :name, value pop_class_variable_value klass, :name push_global_variable_value :name, value pop_global_variable_value :name
Constants
- VERSION