Module: PRC::SectionConfigRubySpec::Public
- Included in:
- PRC::SectionConfig
- Defined in:
- lib/compat/prc_section_config.rb,
lib/compat/1.8/prc_section_config.rb
Overview
Public functions
Instance Method Summary collapse
-
#[]=(*prop) ⇒ Object
Set the value of a specific key under a section.
Instance Method Details
#[]=(*prop) ⇒ Object
Set the value of a specific key under a section. You have to call #data_options(:section => ‘MySection’)
-
Args :
-
keys
: keys to get values from a section set by data_options. If section is not set, it will use :default
-
-
Returns :
-
key value.
-
-
Raises : Nothing
32 33 34 35 36 |
# File 'lib/compat/prc_section_config.rb', line 32 def []=(*keys, value) return nil if keys.length == 0 return p_set(:default, *keys, value) if @data_options[:section].nil? p_set(@data_options[:section], *keys, value) end |