Class: Qor::Layout::Configuration::Root
- Inherits:
-
Base
- Object
- Base
- Qor::Layout::Configuration::Root
show all
- Defined in:
- lib/qor/layout/configuration.rb
Instance Attribute Summary collapse
Attributes inherited from Base
#floating, #name
Instance Method Summary
collapse
Methods inherited from Base
#child_key, #description, #initialize
Instance Attribute Details
#group_children ⇒ Object
Returns the value of attribute group_children.
80
81
82
|
# File 'lib/qor/layout/configuration.rb', line 80
def group_children
@group_children
end
|
Instance Method Details
#actions(name = nil) ⇒ Object
102
103
104
105
106
|
# File 'lib/qor/layout/configuration.rb', line 102
def actions(name=nil)
children = group_children[Action.to_s]
children = children[name] if name.present?
children
end
|
#gadget_by_name(name) ⇒ Object
94
95
96
|
# File 'lib/qor/layout/configuration.rb', line 94
def gadget_by_name(name)
Qor::Layout::Configuration.gadgets.with_indifferent_access[name]
end
|
#gadget_settings_by_name(name) ⇒ Object
98
99
100
|
# File 'lib/qor/layout/configuration.rb', line 98
def gadget_settings_by_name(name)
(gadget_by_name(name).try(:settings) || {}).with_indifferent_access
end
|
#gadgets(name = nil) ⇒ Object
88
89
90
91
92
|
# File 'lib/qor/layout/configuration.rb', line 88
def gadgets(name=nil)
children = group_children[Gadget.to_s]
children = children[name] if name.present?
children
end
|
#layouts(name = nil) ⇒ Object
82
83
84
85
86
|
# File 'lib/qor/layout/configuration.rb', line 82
def layouts(name=nil)
children = group_children[Layout.to_s]
children = children[name] if name.present?
children
end
|