module Alienor::Indentation

Public Instance Methods

add_line(r, s = "") click to toggle source
# File lib/alienor/indentation.rb, line 20
def add_line(r, s = "")
        r.replace(r + ("\t" * @source.nb_indent) + s + "\n")
end
indent() click to toggle source
# File lib/alienor/indentation.rb, line 12
def indent
        @source.nb_indent += 1
end
init_indent() click to toggle source
# File lib/alienor/indentation.rb, line 8
def init_indent
        @source.nb_indent = 0
end
unindent() click to toggle source
# File lib/alienor/indentation.rb, line 16
def unindent
        @source.nb_indent -= 1
end