Class: NxtRegistry::RecursiveRegistry
- Defined in:
- lib/nxt_registry/recursive_registry.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Registry
Instance Method Summary collapse
-
#initialize(name, **options, &config) ⇒ RecursiveRegistry
constructor
A new instance of RecursiveRegistry.
Methods inherited from Registry
#[], #[]=, #allowed_keys, #attr, #configure, #exclude?, #fetch, #include?, #key?, #keys, #register, #register!, #registry, #registry!, #required_keys, #resolve, #resolve!, #to_h, #to_s
Constructor Details
#initialize(name, **options, &config) ⇒ RecursiveRegistry
Returns a new instance of RecursiveRegistry.
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/nxt_registry/recursive_registry.rb', line 3 def initialize(name, **, &config) @level = .fetch(:level) { 0 } @name = name @options = @config = config super(name, **, &config) set_nested_builder_as_default end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/nxt_registry/recursive_registry.rb', line 14 def name @name end |