Sha256: c3ed21832f1ba18ae9e6b5668e44e07da076b0320d9ac67e720886e1dbd54441

Contents?: true

Size: 219 Bytes

Versions: 30

Compression:

Stored size: 219 Bytes

Contents

class Module
  def remove_possible_method(method)
    remove_method(method)
  rescue NameError
  end

  def redefine_method(method, &block)
    remove_possible_method(method)
    define_method(method, &block)
  end
end

Version data entries

30 entries across 30 versions & 3 rubygems

Version Path
react.rb-0.2.1 vendor/active_support/core_ext/module/remove_method.rb
react.rb-0.2.0 vendor/active_support/core_ext/module/remove_method.rb
react.rb-0.1.0 vendor/active_support/core_ext/module/remove_method.rb
react.rb-0.0.2 vendor/active_support/core_ext/module/remove_method.rb
react.rb-0.0.1 vendor/active_support/core_ext/module/remove_method.rb
cloudist-0.5.0 lib/cloudist/core_ext/module.rb
cloudist-0.4.4 lib/cloudist/core_ext/module.rb
cloudist-0.4.3 lib/cloudist/core_ext/module.rb
cloudist-0.4.2 lib/cloudist/core_ext/module.rb
cloudist-0.4.1 lib/cloudist/core_ext/module.rb