Class: String

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

Instance Method Summary collapse

Instance Method Details

#start_with?(prefix) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/pho.rb', line 40

def start_with?(prefix)
  self.index(prefix) == 0
end