W3cubDocs

/Ruby on Rails 5.2

class Complex

Parent:
Object

Public Instance Methods

duplicable?() Show source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 137
def duplicable?
  false
end

Complexes are not duplicable:

Complex(1).duplicable? # => false
Complex(1).dup         # => TypeError: can't copy Complex

© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.