mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Add rdoc markups.
This commit is contained in:
parent
a1cfe6bb70
commit
892c07024d
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
class Array
|
class Array
|
||||||
def select!
|
def select! # :yield: x
|
||||||
i = 0
|
i = 0
|
||||||
each_with_index { |x, j|
|
each_with_index { |x, j|
|
||||||
yield x or next
|
yield x or next
|
||||||
|
|
@ -11,7 +11,7 @@ class Array
|
||||||
self
|
self
|
||||||
end unless method_defined?(:select!)
|
end unless method_defined?(:select!)
|
||||||
|
|
||||||
def sort_by!(&block)
|
def sort_by!(&block) # :yield: x
|
||||||
replace(sort_by(&block))
|
replace(sort_by(&block))
|
||||||
end unless method_defined?(:sort_by!)
|
end unless method_defined?(:sort_by!)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue