Class: URI::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/driller/uri_helper.rb

Instance Method Summary collapse

Instance Method Details

#starts_with?(prefix) ⇒ Boolean



3
4
5
6
# File 'lib/driller/uri_helper.rb', line 3

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