Class: Cardio::Mod::LoadStrategy::Eval
- Inherits:
-
Cardio::Mod::LoadStrategy
- Object
- Cardio::Mod::LoadStrategy
- Cardio::Mod::LoadStrategy::Eval
- Defined in:
- card/lib/cardio/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 Attribute Summary
Attributes inherited from Cardio::Mod::LoadStrategy
Instance Method Summary collapse
Methods inherited from Cardio::Mod::LoadStrategy
class_for_set, class_for_set_pattern, #clean_comments?, #initialize, tmp_files?
Constructor Details
This class inherits a constructor from Cardio::Mod::LoadStrategy
Instance Method Details
#load_modules ⇒ Object
7 8 9 10 11 |
# File 'card/lib/cardio/mod/load_strategy/eval.rb', line 7 def load_modules each_file do |abs_path, module_names| template_class.new(module_names, abs_path, self).build end end |