Module: ZTK::DSL::Core::Attributes Private

Defined in:
lib/ztk/dsl/core/attributes.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:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) included(base)

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.



7
8
9
10
11
12
13
# File 'lib/ztk/dsl/core/attributes.rb', line 7

def self.included(base)
  base.class_eval do
    base.send(:extend, ZTK::DSL::Core::Options::ClassMethods)
    base.add_option(:attribute)
    base.send(:extend, ZTK::DSL::Core::Attributes::ClassMethods)
  end
end

Instance Method Details

- (Object) attributes

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.



15
16
17
# File 'lib/ztk/dsl/core/attributes.rb', line 15

def attributes
  @attributes ||= Hash.new
end