Sha256: 862ae806e78f0f716b215b300956be5a8255df29c9ed1e33c6be131caf801bd8

Contents?: true

Size: 161 Bytes

Versions: 2

Compression:

Stored size: 161 Bytes

Contents

class String
  unless method_defined?(:start_with?)
    # Compatibility with 1.9
    def start_with?(other)
      self[0, other.size] == other
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 lib/ramaze/snippets/string/start_with.rb
ramaze-2008.06 lib/ramaze/snippets/string/start_with.rb