Class: Diecut::Configurable::PathSegment
- Inherits:
-
Object
- Object
- Diecut::Configurable::PathSegment
- Defined in:
- lib/diecut/configurable.rb
Instance Method Summary collapse
Instance Method Details
#metadata ⇒ Object
126 127 128 |
# File 'lib/diecut/configurable.rb', line 126 def @metadata ||= klass.(name) end |
#nested ⇒ Object
130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/diecut/configurable.rb', line 130 def nested @nested ||= begin if .nil? nested = Configurable.build_subclass("#{klass.target_name}.#{name}") klass.setting(name, nested) nested else .default_value end end end |