Module: Rack::App::FrontEnd::Utils
Instance Method Summary collapse
Instance Method Details
#link_instance_variables(from, to) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/rack/app/front_end/utils.rb', line 4 def link_instance_variables(from, to) from.__send__(:instance_variables).each do |instance_variable| value = from.__send__(:instance_variable_get, instance_variable) to.__send__(:instance_variable_set, instance_variable, value) end end |