Sha256: 1a39d8850199def57d01ddec50947a07bcf2976235dc2285e8b1f478cf9cbb06

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

module Xcake
  module Plugin
    def self.included(base)
      base.extend ClassMethods
    end

    module ClassMethods
      include CoreExtensions::ClassDescendants

      def load_plugins
        Dir[plugins_location].each { |file| require file }
        descendants
      end

      def plugins_location
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xcake-0.13.0 lib/xcake/plugin.rb
xcake-0.12.1 lib/xcake/plugin.rb
xcake-0.12.0 lib/xcake/plugin.rb
xcake-0.11.0 lib/xcake/plugin.rb
xcake-0.10.0 lib/xcake/plugin.rb