Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/kramdown/compatibility.rb
Instance Method Summary collapse
Instance Method Details
#end_with?(str) ⇒ Boolean
31 32 33 |
# File 'lib/kramdown/compatibility.rb', line 31 def end_with?(str) self[-str.length, str.length] == str end |
#start_with?(str) ⇒ Boolean
28 29 30 |
# File 'lib/kramdown/compatibility.rb', line 28 def start_with?(str) self[0, str.length] == str end |