class Chamomile::Layout::Table
Public Class Methods
Source
# File lib/chamomile/layout/table.rb, line 6 def initialize(data, columns: nil, height: nil) @data = data @columns = columns @height = height end
Public Instance Methods
Source
# File lib/chamomile/layout/table.rb, line 12 def render(width:, height:) if @data.is_a?(Chamomile::Table) @data.view else table = build_table(width) table.view end end