Sha256: 92a56ff5203d50f723f1a68a09d1b58d7db9f4251002ec0fc5f00e5c4ec6d6b0

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

module Amun
  # load all files in the features directory
  module FeaturesLoader
    module_function

    def load
      path = File.expand_path('../features', __FILE__)
      features = Dir.glob(File.join(path, '**/*'))
      features.each do |feature|
        require feature
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amun-0.2.0 lib/amun/features_loader.rb
amun-0.1.3 lib/amun/features_loader.rb