From 5fa7b15f726166771f743e2da94fc87da475cfee Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 23 Oct 2012 11:47:19 -0700 Subject: more attempt at 1.9 compatibility --- lib/leap_cli.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/leap_cli.rb') diff --git a/lib/leap_cli.rb b/lib/leap_cli.rb index e258cf3..a88a8ad 100644 --- a/lib/leap_cli.rb +++ b/lib/leap_cli.rb @@ -21,3 +21,10 @@ unless String.method_defined?(:to_a) def to_a; [self]; end end end + +unless String.method_defined?(:any?) + class String + def any?; self.chars.any?; end + end +end + -- cgit v1.2.3