diff options
author | R.T. Lechow <rtlechow@gmail.com> | 2011-03-03 23:14:18 -0500 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-03-05 11:56:34 +0100 |
commit | 273700cbd0f8e9013fd4b4a33ab310e4ac02ff62 (patch) | |
tree | 60faf20101fcf22397680615a41c7a485957b696 /activesupport/lib/active_support/core_ext | |
parent | 48841dd6aebd41cfab66f719f3d6896e172d7b9f (diff) | |
download | rails-273700cbd0f8e9013fd4b4a33ab310e4ac02ff62.tar.gz rails-273700cbd0f8e9013fd4b4a33ab310e4ac02ff62.tar.bz2 rails-273700cbd0f8e9013fd4b4a33ab310e4ac02ff62.zip |
Active Support typos.
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
3 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/try.rb b/activesupport/lib/active_support/core_ext/object/try.rb index ff812234e3..04619124a1 100644 --- a/activesupport/lib/active_support/core_ext/object/try.rb +++ b/activesupport/lib/active_support/core_ext/object/try.rb @@ -21,7 +21,7 @@ class Object # Person.try(:find, 1) # @people.try(:collect) {|p| p.name} # - # Without a method argument try will yield to the block unless the reciever is nil. + # Without a method argument try will yield to the block unless the receiver is nil. # @person.try { |p| "#{p.first_name} #{p.last_name}" } #-- # +try+ behaves like +Object#send+, unless called on +NilClass+. diff --git a/activesupport/lib/active_support/core_ext/string/multibyte.rb b/activesupport/lib/active_support/core_ext/string/multibyte.rb index 0b974f5e0a..41de4d6435 100644 --- a/activesupport/lib/active_support/core_ext/string/multibyte.rb +++ b/activesupport/lib/active_support/core_ext/string/multibyte.rb @@ -9,7 +9,7 @@ class String # # In Ruby 1.8 and older it creates and returns an instance of the ActiveSupport::Multibyte::Chars class which # encapsulates the original string. A Unicode safe version of all the String methods are defined on this proxy - # class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsuled string. + # class. If the proxy class doesn't respond to a certain method, it's forwarded to the encapsulated string. # # name = 'Claus Müller' # name.reverse # => "rell??M sualC" diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index c930abc003..addd4dab95 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -24,7 +24,7 @@ class ERB end end - # Aliasing twice issues a warning "dicarding old...". Remove first to avoid it. + # Aliasing twice issues a warning "discarding old...". Remove first to avoid it. remove_method(:h) alias h html_escape |