blob: 07af8e5ec7409b3ed6b013bc9e5a70b23fb3d4b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#
# make ruby 1.9 act more like ruby 1.8
#
unless String.method_defined?(:to_a)
class String
def to_a; [self]; end
end
end
unless String.method_defined?(:any?)
class String
def any?; self.chars.any?; end
end
end
|