Method: Convoy::Formatter::StreamOutputFormatter#indent

Defined in:
lib/convoy/formatter/stream_output_formatter.rb

#indent(count, &block) ⇒ Object



42
43
44
45
46
# File 'lib/convoy/formatter/stream_output_formatter.rb', line 42

def indent(count, &block)
    newline unless cursor_position.newline?
    new_indent = current_indent + count
    self.class.new(stream, :max_output_width => max_output_width - count, :indent_string => indent_string, :current_indent => new_indent, &block)
end