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
reactive-ruby-0.7.22 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.21 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.20 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.19 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.18 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.17 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.16 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.15 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.14 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.13 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.12 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.11 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.10 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.8 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.7 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.6 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.5 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.4 vendor/active_support/core_ext/module/remove_method.rb
reactive-ruby-0.7.3 vendor/active_support/core_ext/module/remove_method.rb
react.rb-0.3.0 vendor/active_support/core_ext/module/remove_method.rb