Class: Card::Mod::LoadStrategy::Eval
- Inherits:
-
Card::Mod::LoadStrategy
- Object
- Card::Mod::LoadStrategy
- Card::Mod::LoadStrategy::Eval
- 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
#clean_comments?, #initialize, klass
Constructor Details
This class inherits a constructor from Card::Mod::LoadStrategy
Instance Method Details
#load_modules ⇒ Object
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, self template.build end end |