Sha256: e42d93c9c6fccea857d368ca6406f134672204e647431fe135a6e2116ef45719

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

class Card
  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

12 entries across 12 versions & 1 rubygems

Version Path
card-1.100.0 lib/card/mod/load_strategy/eval.rb
card-1.99.6 lib/card/mod/load_strategy/eval.rb
card-1.99.5 lib/card/mod/load_strategy/eval.rb
card-1.99.4 lib/card/mod/load_strategy/eval.rb
card-1.99.3 lib/card/mod/load_strategy/eval.rb
card-1.99.2 lib/card/mod/load_strategy/eval.rb
card-1.99.1 lib/card/mod/load_strategy/eval.rb
card-1.99.0 lib/card/mod/load_strategy/eval.rb
card-1.98.3 lib/card/mod/load_strategy/eval.rb
card-1.98.2 lib/card/mod/load_strategy/eval.rb
card-1.98.1 lib/card/mod/load_strategy/eval.rb
card-1.98.0 lib/card/mod/load_strategy/eval.rb