module Rack::App::FrontEnd::Utils
Public Instance Methods
link_instance_variables(from, to)
click to toggle source
# 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