instance method duplicable?

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1

Signature

duplicable?()

Rationals are not duplicable:

Rational(1).duplicable? # => false
Rational(1).dup         # => TypeError: can't copy Rational
Source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 152
    def duplicable?
      false
    end

Defined in activesupport/lib/active_support/core_ext/object/duplicable.rb line 152 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rational

Type at least 2 characters to search.

↑↓ navigate · open · esc close