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