Sha256: 3ebbf44acf95c84308611165da36833382579819c14ad3b417b7c650463ab839

Contents?: true

Size: 132 Bytes

Versions: 2

Compression:

Stored size: 132 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.3.9 lib/ramaze/snippets/string/start_with.rb
ramaze-0.3.9.1 lib/ramaze/snippets/string/start_with.rb