Method: Sutil.tail
- Defined in:
- lib/modl/parser/sutil.rb
.tail(str, n = 1) ⇒ Object
Remove the first n characters from a string
5 6 7 8 9 |
# File 'lib/modl/parser/sutil.rb', line 5 def self.tail(str, n = 1) return if n.negative? str&.slice(n, str.length) end |