instance method
duplicable?
Ruby on Rails 5.1.7
Since v5.1.7 Last seen in v5.2.8.1Available in: v5.1.7 v5.2.8.1
Signature
duplicable?()
Complexes are not duplicable for RUBY_VERSION < 2.5.0:
Complex(1).duplicable? # => false Complex(1).dup # => TypeError: can’t copy Complex
Source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 135
def duplicable?
false
end
Defined in activesupport/lib/active_support/core_ext/object/duplicable.rb line 135
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Complex