module Sprockets::Utils

def duplicable?(obj)

Returns false if .dup would raise a TypeError, otherwise true.

obj - Any Object

Similar to ActiveSupport #duplicable? check.

Internal: Check if object can safely be .dup'd.
def duplicable?(obj)
  case obj
  when NilClass, FalseClass, TrueClass, Symbol, Numeric
    false
  else
    true
  end
end