Module: PRC::CoreConfigRubySpec::Public

Included in:
PRC::CoreConfig
Defined in:
lib/compat/prc_core_config.rb,
lib/compat/1.8/prc_core_config.rb

Overview

Public functions

Instance Method Summary collapse

Instance Method Details

#[]=(*prop) ⇒ Object

Set function

  • Args

    • keys : Array of key path to found

  • Returns

    • The value set or nil

ex: value = CoreConfig.New

value[:level1, :level2] = ‘value’ # => => {:level2 => ‘value’}



34
35
36
# File 'lib/compat/prc_core_config.rb', line 34

def []=(*keys, value)
  p_set(:keys => keys, :value => value)
end