Indent left or right by n spaces. (This used to be called tab and aliased as indent.)
# File lib/clio/facets/string.rb, line 6 def indent(n) if n >= 0 gsub(/^/, ' ' * n) else gsub(/^ {0,#{-n}}/, "") end end
Generated with the Darkfish Rdoc Generator 2.