Sha256: f4025829144f9529777dddbf7b23cf115a7e065094540533cd75dfdf4e221ed7

Contents?: true

Size: 159 Bytes

Versions: 11

Compression:

Stored size: 159 Bytes

Contents

class String
  def starts_with?(prefix)
    index(prefix) == 0
  end

  def path_starts_with?(prefix)
    split('/').starts_with?(prefix.split('/'))
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
coolerator.vision-0.2.10 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.9 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.8 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.7 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.6 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.5 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.4 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.3 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.2 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.1 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb
coolerator.vision-0.2.0 spec/support/vendor/screw-unit/lib/screw_unit/string_extension.rb