class Method

Parent:
Object

Public Instance Methods

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

Methods are not duplicable:

method(:puts).duplicable? # => false
method(:puts).dup         # => TypeError: allocator undefined for Method

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