Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/waz-storage.rb

Instance Method Summary collapse

Instance Method Details

#start_with?(prefix) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
20
# File 'lib/waz-storage.rb', line 17

def start_with?(prefix)
  prefix = prefix.to_s
  self[0, prefix.length] == prefix
end