Module: Amun::FeaturesLoader

Defined in:
lib/amun/features_loader.rb

Overview

load all files in the features directory

Class Method Summary collapse

Class Method Details

.loadObject



6
7
8
9
10
11
12
# File 'lib/amun/features_loader.rb', line 6

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