Sha256: 9ebdb531c7407ebc7c737f9b600b4c73ea13bd4f92092b101f5686ed6a1a78a5

Contents?: true

Size: 436 Bytes

Versions: 8

Compression:

Stored size: 436 Bytes

Contents

module Cardio
  module Mod
    class LoadStrategy
      # Put everything for the module definition in one string and the evaluate
      # it immediately with ruby's eval method.
      class Eval < LoadStrategy
        def load_modules
          each_file do |abs_path, module_names|
            template = module_template.new module_names, abs_path, self
            template.build
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.101.7 lib/cardio/mod/load_strategy/eval.rb
card-1.101.6 lib/cardio/mod/load_strategy/eval.rb
card-1.101.5 lib/cardio/mod/load_strategy/eval.rb
card-1.101.4 lib/cardio/mod/load_strategy/eval.rb
card-1.101.3 lib/cardio/mod/load_strategy/eval.rb
card-1.101.2 lib/cardio/mod/load_strategy/eval.rb
card-1.101.1 lib/cardio/mod/load_strategy/eval.rb
card-1.101.0 lib/cardio/mod/load_strategy/eval.rb