module Tins::To

Public Instance Methods

to(string) click to toggle source
# File lib/tins/to.rb, line 3
def to(string)
  shift_width = (string[/\A\s*/]).size
  string.gsub(/^[^\S\n]{0,#{shift_width}}/, '')
end