Class: Glib::JsonUi::SplitBuilders::Content
- Inherits:
-
AbstractBuilder
- Object
- AbstractBuilder
- Glib::JsonUi::SplitBuilders::Content
- Defined in:
- app/helpers/glib/json_ui/split_builders.rb
Instance Attribute Summary
Attributes inherited from AbstractBuilder
Instance Method Summary collapse
- #center(options = {}) ⇒ Object
-
#initialize(json, page, template) ⇒ Content
constructor
A new instance of Content.
- #left(options = {}) ⇒ Object
- #right(options = {}) ⇒ Object
Constructor Details
#initialize(json, page, template) ⇒ Content
Returns a new instance of Content.
6 7 8 9 |
# File 'app/helpers/glib/json_ui/split_builders.rb', line 6 def initialize(json, page, template) super json, page @template = template end |
Instance Method Details
#center(options = {}) ⇒ Object
17 18 19 20 21 |
# File 'app/helpers/glib/json_ui/split_builders.rb', line 17 def center( = {}) json.center do page.vertical_content() end end |
#left(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'app/helpers/glib/json_ui/split_builders.rb', line 11 def left( = {}) json.left do page.vertical_content() end end |
#right(options = {}) ⇒ Object
23 24 25 26 27 |
# File 'app/helpers/glib/json_ui/split_builders.rb', line 23 def right( = {}) json.right do page.vertical_content() end end |