Module: Twiddler::TargetBuilder
- Defined in:
- lib/twiddler/target_builder.rb
Defined Under Namespace
Classes: Builder, Flow, Macros, RegexpBuilder, ShortWords
Class Method Summary collapse
Class Method Details
.build(output_dir, dictionary, config) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/twiddler/target_builder.rb', line 5 def self.build(output_dir, dictionary, config) FileUtils::mkdir_p(output_dir) File::open(dictionary, "r") do |dict| Builder::registered.each do |klass| dict.rewind klass.new(output_dir, dict, config).go end end end |