Class: Cardio::Mod::Loader::SetPatternLoader

Inherits:
Cardio::Mod::Loader show all
Defined in:
card/lib/cardio/mod/loader/set_pattern_loader.rb

Instance Attribute Summary

Attributes inherited from Cardio::Mod::Loader

#mod_dirs

Instance Method Summary collapse

Methods inherited from Cardio::Mod::Loader

#initialize, #load, load_dir, load_initializers, load_mods, #parts_from_path, reload_sets

Constructor Details

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

Instance Method Details

#each_file(&block) ⇒ Object



13
14
15
16
17
# File 'card/lib/cardio/mod/loader/set_pattern_loader.rb', line 13

def each_file &block
  each_mod_dir :set_pattern do |base_dir|
    each_file_in_dir base_dir, &block
  end
end

#load_strategy_class(strategy) ⇒ Object



9
10
11
# File 'card/lib/cardio/mod/loader/set_pattern_loader.rb', line 9

def load_strategy_class strategy
  LoadStrategy.class_for_set_pattern strategy
end

#template_classObject



5
6
7
# File 'card/lib/cardio/mod/loader/set_pattern_loader.rb', line 5

def template_class
  SetPatternTemplate
end