instance method duplicable?

Ruby on Rails 5.1.7

Since v5.1.7 Last seen in v5.2.8.1

Available in: v5.1.7 v5.2.8.1

Signature

duplicable?()

Rationals are not duplicable for RUBY_VERSION < 2.5.0:

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

Source
# File activesupport/lib/active_support/core_ext/object/duplicable.rb, line 150
    def duplicable?
      false
    end

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

Defined in Rational

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close