Method: String#shift
- Defined in:
- lib/flumtter/app/core/string.rb
#shift(n = 2) ⇒ Object
97 98 99 100 101 |
# File 'lib/flumtter/app/core/string.rb', line 97 def shift(n=2) self.each_line.map do |line| " "*n + line.chomp end.join("\n") end |