Top Level Namespace

Defined Under Namespace

Modules: TablePrint

Instance Method Summary collapse

Instance Method Details

#tp(data = Class, *options) ⇒ Object



74
75
76
77
78
# File 'lib/table_print.rb', line 74

def tp(data=Class, *options)
  printer = TablePrint::Printer.new(data, options)
  TablePrint::Config.io.puts printer.table_print unless data.is_a? Class
  TablePrint::Returnable.new(printer.message) # we have to return *something*, might as well be execution time.
end