mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Move Array#sort_by! to http/cookie/ruby_compat.
This commit is contained in:
parent
4ef2147138
commit
bf9bbe3da8
2 changed files with 4 additions and 8 deletions
|
|
@ -10,6 +10,10 @@ class Array
|
|||
self[i..-1] = []
|
||||
self
|
||||
end unless method_defined?(:select!)
|
||||
|
||||
def sort_by!(&block)
|
||||
replace(sort_by(&block))
|
||||
end unless method_defined?(:sort_by!)
|
||||
end
|
||||
|
||||
class Hash
|
||||
|
|
|
|||
|
|
@ -1,13 +1,5 @@
|
|||
require 'http/cookie_jar'
|
||||
|
||||
# :stopdoc:
|
||||
class Array
|
||||
def sort_by!(&block)
|
||||
replace(sort_by(&block))
|
||||
end unless method_defined?(:sort_by!)
|
||||
end
|
||||
# :startdoc:
|
||||
|
||||
class HTTP::CookieJar
|
||||
# A store class that uses a hash-based cookie store.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue