class EasyTable::Builder

Public Class Methods

build(items, view, options = {}) { |table| ... } click to toggle source
# File lib/easy_table/builder.rb, line 3
def self.build(items, view, options = {})
  table = Base.new(items, options)
  yield table if block_given?
  table.presenter = Presenter.new(table, view)
  table.render
end