module SyntaxTree
def self.format_node(
def self.format_node( source, node, maxwidth = DEFAULT_PRINT_WIDTH, base_indentation = DEFAULT_INDENTATION, options: Formatter::Options.new ) formatter = Formatter.new(source, [], maxwidth, options: options) node.format(formatter) formatter.flush(base_indentation) formatter.output.join end