module Tablesalt::Isolation::ClassMethods
Public Instance Methods
isolate(obj)
click to toggle source
Dupes an item if possible. Classes/modules can have unpredictable effects when duped, so they are not.
# File lib/tablesalt/isolation.rb, line 16 def isolate(obj) return obj if obj.is_a?(Module) obj.clone end