Sha256: f858784fab3aef128dcd6ec7f89d08a346eb73b8aa19c35d9ca75798f4374e9a

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

module Rack::App::FrontEnd::Utils
  extend self

  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

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rack-app-front_end-0.22.2 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.22.1 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.22.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.21.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.20.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.19.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.18.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.17.0 lib/rack/app/front_end/utils.rb
rack-app-front_end-0.16.0 lib/rack/app/front_end/utils.rb