Sha256: b602a28c0d05796458e15111816755e7e64c73ecf12e7c0d7438d5293ce32ed8

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require 'lazydoc'
require 'configurable/class_methods'

module Configurable
  module ModuleMethods
    module_function
    
    # Extends including classes with Configurable::ClassMethods
    def included(base)
      base.extend ClassMethods
      base.extend Lazydoc::Attributes
      base.extend ModuleMethods unless base.kind_of?(Class)
      
      ClassMethods.initialize(base)
      super
    end
  end
  
  extend ModuleMethods
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
configurable-0.7.0 lib/configurable/module_methods.rb
configurable-0.6.0 lib/configurable/module_methods.rb