Skip to content
Browse files

Reword

  • Loading branch information...
1 parent 506c4ca commit cfcb5b8ae1576c16c09dd213a755b290d7eed57a @singpolyma committed Apr 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 16-middle
View
2 16-middle
@@ -78,6 +78,6 @@ You would expect that if you tried to redefine `Object#send` like this, that the
{:a => {:b => 12}}.try(:[], :a).try(:[], :c) # nil
{:a => {:b => 12}}.try(:[], :r).try(:[], :b) # nil
-By adding a method to `Object`, we add a default implementation of that method to every object. By adding a method to `NilClass`, we just add it for the special value `nil`.
+By adding a method to `Object`, we add a default implementation of that method to every object. By adding a method to `NilClass`, we add it for just the special value `nil`.
This can be very powerful, but it can also be very dangerous. If two libraries decide to add different implementations of the same method to the same class, only one of them will actually end up being the one that is used. This is sometimes referred to as "namespace pollution".

0 comments on commit cfcb5b8

Please sign in to comment.
Something went wrong with that request. Please try again.