Class: HashSyntax::Runner
- Inherits:
-
Object
- Object
- HashSyntax::Runner
- Defined in:
- lib/hash_syntax/runner.rb
Instance Method Summary collapse
Instance Method Details
#run! ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/hash_syntax/runner.rb', line 4 def run! = () files = gather_files files.each do |name| transformed_file = Transformer.transform(File.read(name), ) File.open(name, 'w') { |fp| fp.write(transformed_file) } end end |