lib/lorj_config.rb in lorj-1.0.10 vs lib/lorj_config.rb in lorj-1.0.11
- old
+ new
@@ -200,15 +200,20 @@
# Lorj::Config::extra_set
#
# * *Args* :
# - +key+ : key name. Can be an key tree (Array of keys).
# - +value+ : Value to set
+ # - +options+ : possible options:
+ # - +:name+ : layer to exclusively set data.
+ # - +:index+ : layer index to exclusively set data.
+ # If neither :name or :index is set, set will use the 'runtime' layer.
+ #
# * *Returns* :
# - value set
# * *Raises* :
# Nothing
- def set(key, value)
- self[key] = value # Call PRC::CoreConfig [] function
+ def set(key, value, options = {})
+ p_set(options.merge(:keys => [key], :value => value))
end
# Get function
# Will search over several places:
# * runtime - Call internal runtime_get -