Class: Glib::JsonUi::SplitBuilders::Content

Inherits:
AbstractBuilder show all
Defined in:
app/helpers/glib/json_ui/split_builders.rb

Instance Attribute Summary

Attributes inherited from AbstractBuilder

#json, #page

Instance Method Summary collapse

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(options = {})
  json.center do
    page.vertical_content(options)
  end
end

#left(options = {}) ⇒ Object



11
12
13
14
15
# File 'app/helpers/glib/json_ui/split_builders.rb', line 11

def left(options = {})
  json.left do
    page.vertical_content(options)
  end
end

#right(options = {}) ⇒ Object



23
24
25
26
27
# File 'app/helpers/glib/json_ui/split_builders.rb', line 23

def right(options = {})
  json.right do
    page.vertical_content(options)
  end
end