class String

Public Instance Methods

unindent(count) click to toggle source
# File lib/hodor.rb, line 75
def unindent(count)
  #gsub(/^#{scan(/^\s*/).min_by{|l|l.length}}/, "")
  gsub(/^[ \t]{1,#{count}}/, "")
end