Class: Cardio::Mod::LoadStrategy::Eval

Inherits:
Cardio::Mod::LoadStrategy show all
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 Method Summary collapse

Methods inherited from Cardio::Mod::LoadStrategy

#clean_comments?, #initialize, klass, tmp_files?

Constructor Details

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

Instance Method Details

#load_modulesObject



7
8
9
10
11
12
# File 'card/lib/cardio/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