Class: Glib::JsonUi::GenericBuilders::Content
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- Glib::JsonUi::GenericBuilders::Content
- Defined in:
- app/helpers/glib/json_ui/generic_builders.rb
Instance Attribute Summary
Attributes inherited from AbstractBuilder
Instance Method Summary collapse
- #definePanels(names) ⇒ Object
-
#initialize(json, page, template) ⇒ Content
constructor
A new instance of Content.
Constructor Details
#initialize(json, page, template) ⇒ Content
Returns a new instance of Content.
6 7 8 9 |
# File 'app/helpers/glib/json_ui/generic_builders.rb', line 6 def initialize(json, page, template) super json, page @template = template end |
Instance Method Details
#definePanels(names) ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/helpers/glib/json_ui/generic_builders.rb', line 11 def definePanels(names) names.each do |name| define_singleton_method(name) do || json.set!(name) { page.vertical_content() } end end end |