Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/cloudalign/client.rb
Instance Method Summary collapse
Instance Method Details
#starts_with?(prefix) ⇒ Boolean
5 6 7 8 |
# File 'lib/cloudalign/client.rb', line 5 def starts_with?(prefix) prefix = prefix.to_s self[0, prefix.length] == prefix end |