Class: Termplot::WidgetDSL::StatisticsConfig

Inherits:
WidgetConfig show all
Defined in:
lib/termplot/dsl/widgets.rb

Instance Attribute Summary

Attributes inherited from WidgetConfig

#col, #cols, #command, #debug, #interval, #row, #rows, #title

Instance Method Summary collapse

Methods inherited from WidgetConfig

#flatten, #initialize, #positioned_widget, #post_initialize, #producer_options, #set_dimensions

Constructor Details

This class inherits a constructor from Termplot::WidgetDSL::WidgetConfig

Instance Method Details

#widgetObject



101
102
103
104
105
106
107
108
# File 'lib/termplot/dsl/widgets.rb', line 101

def widget
  @widget ||= Termplot::Widgets::StatisticsWidget.new(
    title: title,
    cols: cols,
    rows: rows,
    debug: debug
  )
end