module UtilsDrawer

Constants

VERSION

Public Instance Methods

column(text, size = nil) click to toggle source
# File lib/utils_drawer.rb, line 22
def column(text, size = nil)
  @column = TableDrawer::Column.new(text, size)
  @row.add(@column)
end
data(item, value) click to toggle source
# File lib/utils_drawer.rb, line 34
def data(item, value)
  @data = GraphDrawer::Data.new(item, value)
  @graph.add(@data)
end
graph(option = { omission: true }) { || ... } click to toggle source
# File lib/utils_drawer.rb, line 27
def graph(option = { omission: true })
  @graph = GraphDrawer::Graph.new(option)
  yield
  @graph.datas_init
  @graph.to_s
end
row() { || ... } click to toggle source
# File lib/utils_drawer.rb, line 16
def row
  @row = TableDrawer::Row.new
  yield
  @table.add(@row)
end
table(min_column_size = 10) { || ... } click to toggle source
# File lib/utils_drawer.rb, line 10
def table(min_column_size = 10)
  @table = TableDrawer::Table.new(min_column_size)
  yield
  @table.to_s
end