Class: Card::Mod::LoadStrategy::Eval

Inherits:
Card::Mod::LoadStrategy show all
Defined in:
lib/card/mod/load_strategy/eval.rb

Overview

Put everything for the module definition in one string and the evaluate it immediately with ruby's eval method.

Instance Method Summary collapse

Methods inherited from Card::Mod::LoadStrategy

#initialize, klass

Constructor Details

This class inherits a constructor from Card::Mod::LoadStrategy

Instance Method Details

#load_modulesObject



7
8
9
10
11
12
# File 'lib/card/mod/load_strategy/eval.rb', line 7

def load_modules
  each_file do |abs_path, module_names|
    template = module_template.new module_names, abs_path
    template.build
  end
end