Class: Glib::JsonUi::JsonUiElement
- Inherits:
-
Object
- Object
- Glib::JsonUi::JsonUiElement
- Defined in:
- app/helpers/glib/json_ui/abstract_builder.rb
Direct Known Subclasses
ActionBuilder::Action, ListBuilders::Template::AbstractTemplate, MenuBuilder::MenuItem, TableBuilders::Template::AbstractTemplate, ViewBuilder::View
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(json, page) ⇒ JsonUiElement
constructor
A new instance of JsonUiElement.
- #parse(args = {}) ⇒ Object
Constructor Details
#initialize(json, page) ⇒ JsonUiElement
Returns a new instance of JsonUiElement.
52 53 54 55 |
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 52 def initialize json, page @json = json @page = page end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
50 51 52 |
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 50 def json @json end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
50 51 52 |
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 50 def page @page end |
Instance Method Details
#parse(args = {}) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 |
# File 'app/helpers/glib/json_ui/abstract_builder.rb', line 57 def parse args = {} @args = args if args.is_a? Hash args.each do |k, v| send(k, v) end end created end |