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