Class: Nugrant::Parameters

Inherits:
Object
  • Object
show all
Includes:
Mixin::Parameters
Defined in:
lib/nugrant/parameters.rb

Instance Attribute Summary

Attributes included from Mixin::Parameters

#__all, #__config, #__current, #__defaults, #__system, #__user

Instance Method Summary collapse

Methods included from Mixin::Parameters

#array_merge_strategy, #array_merge_strategy=, #auto_export, #auto_export=, #auto_export_script_path, #auto_export_script_path=, #compute_all!, #defaults, #defaults=, #merge, #merge!, #method_missing, #setup!

Constructor Details

#initialize(defaults = {}, config = {}, options = {}) ⇒ Parameters

Create a new parameters object which holds completed merged values. The following precedence is used to decide which location has precedence over which location:

(Highest)  ------------------ (Lowest)
  project < user < system < defaults

| Arguments

* `defaults`
  Passed to Mixin::Parameters setup! method. See mixin
  module for further information.

* `config`
  Passed to Mixin::Parameters setup! method. See mixin
  module for further information.


25
26
27
# File 'lib/nugrant/parameters.rb', line 25

def initialize(defaults = {}, config = {}, options = {})
  setup!(defaults, config, options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nugrant::Mixin::Parameters