aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-03-05 14:17:01 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-03-05 14:18:09 +0100
commitd969405acd98a6e6b39391e45fc3803fd3f26d32 (patch)
tree48da629602a9797863a2afaceaba731ae069f643 /activesupport/lib
parent95cfeb968d189d5cd7f8ebcf53edfa3e2cd5f335 (diff)
downloadrails-d969405acd98a6e6b39391e45fc3803fd3f26d32.tar.gz
rails-d969405acd98a6e6b39391e45fc3803fd3f26d32.tar.bz2
rails-d969405acd98a6e6b39391e45fc3803fd3f26d32.zip
Some documentation edits [ci skip]
* Fix a few typos * Wrap some lines around 80 chars * Rephrase some statements
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/module/remove_method.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/remove_method.rb b/activesupport/lib/active_support/core_ext/module/remove_method.rb
index 8a2569a7d0..52632d2c6b 100644
--- a/activesupport/lib/active_support/core_ext/module/remove_method.rb
+++ b/activesupport/lib/active_support/core_ext/module/remove_method.rb
@@ -1,13 +1,13 @@
class Module
- # Remove the named method, if it exists.
+ # Removes the named method, if it exists.
def remove_possible_method(method)
if method_defined?(method) || private_method_defined?(method)
undef_method(method)
end
end
- # Replace the existing method definition, if there is one, with the contents
- # of the block.
+ # Replaces the existing method definition, if there is one, with the passed
+ # block as its body.
def redefine_method(method, &block)
remove_possible_method(method)
define_method(method, &block)