module Lorj::MetaRubySpec::Public

Public functions

Public functions

Public Instance Methods

[]=(type, section, *prop) click to toggle source

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

# File lib/compat/1.8/lorj_meta.rb, line 34
def []=(type, section, *prop)
  keys = prop.clone
  options = {}
  options = keys.pop if keys[-1].is_a?(Hash)

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