module CoreExtensions::Object
Public Instance Methods
extend!(mod)
click to toggle source
this behaves the same as `#extend`, except replaces existing methods
# File lib/core_extensions/object.rb, line 6 def extend!(mod) mod.instance_methods.each do |k| define_singleton_method(k, &mod.instance_method(k).bind(self)) end end