Module: CascadingConfiguration::Array::Sorted::Unique

Defined in:
lib/cascading_configuration/array/sorted/unique.rb

Overview

CascadingConfiguration::Array::Sorted::Unique allows definition of array attributes that will composite downward

through the ancestor chain and ensure that member elements remain sorted and unique.

Instance Method Summary collapse

Instance Method Details

#attr_instance_sorted_unique_array(*names) {|| ... } ⇒ Object

Cascading array instance methods, which will affect instances of including modules according to

include/extend pattern used.

for the declared attribute. If a array is passed, each key will be used as the setting name and accessor and each value will be used as the corresponding write accessor.

and runs module_eval( & block ) on instance with provided block.

Yields:

  • ()

    Creates a new Module of type CascadingConfiguration::Core::InstanceController::ExtensionModule



# File 'lib/cascading_configuration/array/sorted/unique.rb', line 45

#attr_local_sorted_unique_array(*names) {|| ... } ⇒ Object

Non-cascading array methods that will affect the instance declared on as well as instances of that instance,

if applicable.

for the declared attribute. If a array is passed, each key will be used as the setting name and accessor and each value will be used as the corresponding write accessor.

and runs module_eval( & block ) on instance with provided block.

Yields:

  • ()

    Creates a new Module of type CascadingConfiguration::Core::InstanceController::ExtensionModule



# File 'lib/cascading_configuration/array/sorted/unique.rb', line 63

#attr_module_sorted_unique_array(*names) {|| ... } ⇒ Object

Cascading array attribute module/class methods, which will affect all module singletons

according to include/extend pattern used.

for the declared attribute. If a array is passed, each key will be used as the setting name and accessor and each value will be used as the corresponding write accessor.

and runs module_eval( & block ) on instance with provided block.

Yields:

  • ()

    Creates a new Module of type CascadingConfiguration::Core::InstanceController::ExtensionModule



# File 'lib/cascading_configuration/array/sorted/unique.rb', line 27

#attr_sorted_unique_array(*names) {|| ... } ⇒ Object

Cascading array attribute methods, which will affect instances according to include/extend pattern used.

for the declared attribute. If a array is passed, each key will be used as the setting name and accessor and each value will be used as the corresponding write accessor.

and runs module_eval( & block ) on instance with provided block.

Yields:

  • ()

    Creates a new Module of type CascadingConfiguration::Core::InstanceController::ExtensionModule



# File 'lib/cascading_configuration/array/sorted/unique.rb', line 8