Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/watch-tower.rb

Instance Method Summary collapse

Instance Method Details

#starts_with?(characters) ⇒ Boolean

Returns:

  • (Boolean)


183
184
185
# File 'lib/watch-tower.rb', line 183

def starts_with?(characters)
  self.match(/^#{characters}/) ? true : false
end