lib/scoped_hash.rb in scoped_hash-0.1.0 vs lib/scoped_hash.rb in scoped_hash-0.1.1
- old
+ new
@@ -10,10 +10,10 @@
@lbracket = DEFAULT_LEFT_BRACKET
@rbracket = DEFAULT_RIGHT_BRACKET
end
def scope(scope)
- mash = self.clone()
+ mash = Marshal.load(Marshal.dump(self))
visit_scope(mash, scope)
return mash
end
def set_bracket(bracket)