Class: PhlexUI::Chart
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options: {}, **attrs) ⇒ Chart
constructor
A new instance of Chart.
- #view_template ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options: {}, **attrs) ⇒ Chart
Returns a new instance of Chart.
5 6 7 8 |
# File 'lib/phlex_ui/chart.rb', line 5 def initialize(options: {}, **attrs) @options = .to_json super(**attrs) end |
Instance Method Details
#view_template ⇒ Object
10 11 12 |
# File 'lib/phlex_ui/chart.rb', line 10 def view_template(&) canvas(**attrs, &) end |