Add rdoc markups.

This commit is contained in:
Akinori MUSHA 2013-04-17 01:14:45 +09:00
parent a1cfe6bb70
commit 892c07024d

View file

@ -1,5 +1,5 @@
class Array
def select!
def select! # :yield: x
i = 0
each_with_index { |x, j|
yield x or next
@ -11,7 +11,7 @@ class Array
self
end unless method_defined?(:select!)
def sort_by!(&block)
def sort_by!(&block) # :yield: x
replace(sort_by(&block))
end unless method_defined?(:sort_by!)
end