Skip to content

Commit

Permalink
Fixes typo in Object#try!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Hayes committed Jul 26, 2013
1 parent 82a2a78 commit a99aa3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/object/try.rb
Expand Up @@ -47,7 +47,7 @@ def try(*a, &b)
end

# Same as #try, but will raise a NoMethodError exception if the receiving is not nil and
# does not implemented the tried method.
# does not implement the tried method.
def try!(*a, &b)
if a.empty? && block_given?
yield self
Expand Down

0 comments on commit a99aa3b

Please sign in to comment.