summaryrefslogtreecommitdiff
path: root/lib/leap_cli.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-23 11:47:19 -0700
committerelijah <elijah@riseup.net>2012-10-23 11:47:19 -0700
commit5fa7b15f726166771f743e2da94fc87da475cfee (patch)
treefcfa0b1b11d10456d05d47cf75dd7a39be2f1616 /lib/leap_cli.rb
parentf87056ca4ff0b477bc9a7cb83496bbc4db39d652 (diff)
more attempt at 1.9 compatibility
Diffstat (limited to 'lib/leap_cli.rb')
-rw-r--r--lib/leap_cli.rb7
1 files changed, 7 insertions, 0 deletions
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
+