Sha256: aaa783dc737b3ad10c209aee7c6365026a92ac1d57d5c2ff1e0100f56a113620
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
require "statusboard/widgets/base" module Statusboard # Class which represents table widgets for Status Board. # The widget is configured and filled with data using a DSL # which is passed to the constructor. class TableWidget < WidgetBase def initialize(&block) @table_description = DSL::TableDescription.new(&block) end def render table_data = @table_description.construct render_template("table.erb", table_data) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
statusboard-0.1.0 | lib/statusboard/widgets/table.rb |