method
dup_or_share
v8.1.1 -
Show latest stable
- Class:
ActiveModel::Attribute
dup_or_share()public
No documentation available.
# File activemodel/lib/active_model/attribute.rb, line 99
def dup_or_share # :nodoc:
if @type.mutable?
dup
else
self # If the underlying type is immutable we can get away with not duping
end
end