In Files

Methods

Files

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.