Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/scrape/string_ext.rb
Instance Method Summary collapse
Instance Method Details
#starts_with(str) ⇒ Object
2 3 4 5 |
# File 'lib/scrape/string_ext.rb', line 2 def starts_with str str = str.to_str self[0, str.length] == str end |