Sha256: fc2c67793f51d1b7aa379510dfecb67aee49a16a5802b778c4878db6fb9992a3
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
class Rack::App::FrontEnd::Template::Scope def extended_modules class << self self end.included_modules end def inherit_modules!(object) class << object self end.included_modules.each do |module_constant| extend(module_constant) end end def inherit_instance_variables!(object) object.__send__(:instance_variables).each do |instance_variable| value = object.__send__(:instance_variable_get, instance_variable) instance_variable_set(instance_variable, value) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-app-front_end-0.15.1 | lib/rack/app/front_end/template/scope.rb |
rack-app-front_end-0.15.0 | lib/rack/app/front_end/template/scope.rb |