module ZTK::DSL::Core::Attributes

@author Zachary Patten <zpatten AT jovelabs DOT io> @api private

Public Class Methods

included(base) click to toggle source
# 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

Public Instance Methods

attributes() click to toggle source
# File lib/ztk/dsl/core/attributes.rb, line 15
def attributes
  @attributes ||= Hash.new
end