Sha256: 06675877bfb827f1bde265083d519c4b238d6ed1b173d5fda534f42c799f91a1

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

require_relative 'base/class_helpers'
require_relative 'base/class_auto_loader'
require_relative 'rake_task'
require_relative 'options'

class RakeCommander
  module Base
    class << self
      def included(base)
        super(base)
        base.extend RakeCommander::Base::ClassHelpers
        base.extend RakeCommander::Base::ClassAutoLoader
        base.autoloads_children_of RakeCommander

        base.extend ClassMethods
        base.send :include, RakeTask

        base.send :include, Options
        #autoload_namespace_ignore "RakeCommander::Samples"
      end
    end

    module ClassMethods
      def self_load
        autoload_children
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rake-commander-0.1.4 lib/rake-commander/base.rb
rake-commander-0.1.2 lib/rake-commander/base.rb