diff options
Diffstat (limited to 'lib/leap_cli.rb')
-rw-r--r-- | lib/leap_cli.rb | 7 |
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 + |