Class: Qor::Layout::Configuration::Base
- Inherits:
-
Object
- Object
- Qor::Layout::Configuration::Base
- Includes:
- Extlib::Dsl::Configuration::Base
- Defined in:
- lib/qor/layout/configuration.rb
Instance Attribute Summary collapse
-
#floating ⇒ Object
Returns the value of attribute floating.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #child_key ⇒ Object
- #description ⇒ Object
-
#initialize(*arguments) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(*arguments) ⇒ Base
Returns a new instance of Base.
58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/qor/layout/configuration.rb', line 58 def initialize(*arguments) super root = arguments[1] if root root.group_children ||= {} root.group_children[self.class.to_s] ||= {} root.group_children[self.class.to_s][self.name.to_s] = self end end |
Instance Attribute Details
#floating ⇒ Object
Returns the value of attribute floating.
55 56 57 |
# File 'lib/qor/layout/configuration.rb', line 55 def floating @floating end |
#name ⇒ Object
Returns the value of attribute name.
55 56 57 |
# File 'lib/qor/layout/configuration.rb', line 55 def name @name end |
Instance Method Details
#child_key ⇒ Object
70 71 72 |
# File 'lib/qor/layout/configuration.rb', line 70 def child_key File.join(self.class.to_s, self.name.to_s) end |
#description ⇒ Object
74 75 76 |
# File 'lib/qor/layout/configuration.rb', line 74 def description self.raw_data.description || self.raw_data.description_blk.try(:call) end |