Module: Seteable
- Defined in:
- lib/seteable.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.deepclone(hash) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/seteable.rb', line 9 def self.deepclone(hash) default_proc = hash.default_proc hash.default_proc = nil Marshal.load(Marshal.dump(hash)) ensure hash.default_proc = default_proc end |
.included(base) ⇒ Object
4 5 6 7 |
# File 'lib/seteable.rb', line 4 def self.included(base) base.include(InstanceMethods) base.extend(ClassMethods) end |