Module: Lorj::MetaRubySpec::Public

Included in:
Lorj::MetaAppConfig
Defined in:
lib/compat/lorj_meta.rb,
lib/compat/1.8/lorj_meta.rb

Overview

Public functions

Instance Method Summary collapse

Instance Method Details

#[]=(type, section, *prop) ⇒ Object

layer setting function

  • Args

    • type : :sections by default. Define the section type name.

    • section : Symbol. Section name of the data to define.

    • keys : 1 Symbol or more Symbols. Name of the data and options.

    • options : Hash. List of options

  • Returns

    • The value set or nil



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

def []=(type, section, *keys, options)
  return nil if keys.length == 0
  set(type, section, keys, options)
end