Module: Termplot::WidgetDSL
- Included in:
- DSL::Panel
- Defined in:
- lib/termplot/dsl/widgets.rb
Defined Under Namespace
Classes: HistogramConfig, StatisticsConfig, TimeSeriesConfig, WidgetConfig
Instance Method Summary
collapse
Instance Method Details
#histogram(attrs) ⇒ Object
16
17
18
19
|
# File 'lib/termplot/dsl/widgets.rb', line 16
def histogram(attrs)
attrs = merge_defaults(attrs)
children.push(HistogramConfig.new(attrs))
end
|
#statistics(attrs) ⇒ Object
11
12
13
14
|
# File 'lib/termplot/dsl/widgets.rb', line 11
def statistics(attrs)
attrs = merge_defaults(attrs)
children.push(StatisticsConfig.new(attrs))
end
|
#timeseries(attrs) ⇒ Object
6
7
8
9
|
# File 'lib/termplot/dsl/widgets.rb', line 6
def timeseries(attrs)
attrs = merge_defaults(attrs)
children.push(TimeSeriesConfig.new(attrs))
end
|