Class: Temill::Emitters::StringEmitter

Inherits:
Base
  • Object
show all
Defined in:
lib/temill/emitter.rb

Instance Method Summary collapse

Methods inherited from Base

#annotation, #call, #emit_for_source_file, #initialize

Constructor Details

This class inherits a constructor from Temill::Emitters::Base

Instance Method Details

#execute(source_files) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/temill/emitter.rb', line 64

def execute(source_files)
  source_files.map{| sf |
    sio = StringIO.new('', 'w')
    emit_for_source_file(sf, sio)
    [sf.path, sio.string]
  }.to_h
end