indent(amount, indent_string=nil, indent_empty_lines=false)
Instance Public methods
Indents the lines in the receiver:
<<EOS.indent(2)
def some_method
some_code
end
EOS
# =>
def some_method
some_code
end
The second argument, indent_string, specifies which indent
string to use. The default is nil, which tells the method to
make a guess by peeking at the first indented line, and fallback to a space
if there is none.
" foo".indent(2) # => " foo"
"foo\