Sha256: 5210bc22b325d9e1ec44f72e38f6f228a0ee088d11c408c2d79c8e13e7734f2e

Contents?: true

Size: 229 Bytes

Versions: 12

Compression:

Stored size: 229 Bytes

Contents

#
# 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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
leap_cli-1.9.2 lib/leap_cli/core_ext/string.rb
leap_cli-1.9.1 lib/leap_cli/core_ext/string.rb
leap_cli-1.9 lib/leap_cli/core_ext/string.rb
leap_cli-1.8.1 lib/leap_cli/core_ext/string.rb
leap_cli-1.8 lib/leap_cli/core_ext/string.rb
leap_cli-1.7.4 lib/leap_cli/core_ext/string.rb
leap_cli-1.7.3 lib/leap_cli/core_ext/string.rb
leap_cli-1.6.2 lib/leap_cli/core_ext/string.rb
leap_cli-1.5.6 lib/core_ext/string.rb
leap_cli-1.5.1 lib/core_ext/string.rb
leap_cli-1.5.0 lib/core_ext/string.rb
leap_cli-1.2.5 lib/core_ext/string.rb