Module: ZTK::DSL::Core::Options::ClassMethods Private

Defined in:
lib/ztk/dsl/core/options.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Author:

Instance Method Summary (collapse)

Instance Method Details

- (Object) add_option(key)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
# File 'lib/ztk/dsl/core/options.rb', line 16

def add_option(key)
  option_key = "#{key}_options"
  cattr_accessor option_key
  send(option_key) || send("#{option_key}=", {})
end