Class: NxtRegistry::RecursiveRegistry

Inherits:
Registry
  • Object
show all
Defined in:
lib/nxt_registry/recursive_registry.rb

Instance Attribute Summary collapse

Attributes inherited from Registry

#configured, #mutex

Instance Method Summary collapse

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, **options, &config)
  @level = options.fetch(:level) { 0 }

  @name = name
  @options = options
  @config = config

  super(name, **options, &config)
  set_nested_builder_as_default
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/nxt_registry/recursive_registry.rb', line 14

def name
  @name
end