backports 1.6.4 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/README.rdoc +1 -0
- data/VERSION.yml +1 -1
- data/lib/backports/symbol.rb +2 -2
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
data/VERSION.yml
CHANGED
data/lib/backports/symbol.rb
CHANGED
@@ -3,8 +3,6 @@ class Symbol
|
|
3
3
|
def to_proc
|
4
4
|
Proc.new { |*args| args.shift.__send__(self, *args) }
|
5
5
|
end unless :to_proc.respond_to?(:to_proc)
|
6
|
-
|
7
|
-
include Enumerable
|
8
6
|
|
9
7
|
[ [%w(<=> casecmp), {:before => "return nil unless args.first.is_a? Symbol" }],
|
10
8
|
[%w(capitalize downcase next succ swapcase upcase), {:after => ".to_s"}],
|
@@ -17,4 +15,6 @@ class Symbol
|
|
17
15
|
end unless method_defined? :#{method}
|
18
16
|
end_eval
|
19
17
|
end }
|
18
|
+
|
19
|
+
include Comparable unless ancestors.include? Comparable
|
20
20
|
end
|