Sha256: e41dbc222a681178911be58130c255df50b7a9492a4eb5eeb41bce7a254c615e
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
class Hornsby module Context def self.execute(&block) module_eval(&block) if block end def self.copy_ivars(to, reload = false) instance_variables.each do |iv| v = instance_variable_get(iv) v.reload if reload and v.respond_to?(:reload) to.instance_variable_set(iv, v) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
sinsiliux-hornsby-0.4.0 | lib/hornsby/context.rb |
sinsiliux-hornsby-0.4.1 | lib/hornsby/context.rb |
hornsby-0.4.2 | lib/hornsby/context.rb |