class Cucumber::Ast::Table
def to_s(options = {}) #:nodoc:
def to_s(options = {}) #:nodoc: options = {:color => true, :indent => 2, :prefixes => TO_S_PREFIXES}.merge(options) io = StringIO.new c = Term::ANSIColor.coloring? Term::ANSIColor.coloring = options[:color] f = Formatter::Pretty.new(nil, io, options) f.instance_variable_set('@indent', options[:indent]) f.visit_multiline_arg(self) Term::ANSIColor.coloring = c io.rewind s = "\n" + io.read + (" " * (options[:indent] - 2)) s end