Skip to content
This repository
Browse code

:method: is not needed when RDoc can detect it

  • Loading branch information...
commit ae35a36afc616a0225d2f58da125abb318fd9b4a 1 parent 21eadc1
Santiago Pastorino authored December 02, 2010
5  activesupport/lib/active_support/core_ext/object/try.rb
... ...
@@ -1,7 +1,4 @@
1 1
 class Object
2  
-  ##
3  
-  # :method: try
4  
-  #
5 2
   # Invokes the method identified by the symbol +method+, passing it any arguments
6 3
   # and/or the block specified, just like the regular Ruby <tt>Object#send</tt> does.
7 4
   #
@@ -28,7 +25,6 @@ class Object
28 25
   #   @person.try { |p| "#{p.first_name} #{p.last_name}" }
29 26
   #--
30 27
   # +try+ behaves like +Object#send+, unless called on +NilClass+.
31  
-
32 28
   def try(*a, &b)
33 29
     if a.empty? && block_given?
34 30
       yield self
@@ -36,7 +32,6 @@ def try(*a, &b)
36 32
       __send__(*a, &b)
37 33
     end
38 34
   end
39  
-
40 35
 end
41 36
 
42 37
 class NilClass #:nodoc:

0 notes on commit ae35a36

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