Module: Flok::HooksCompiler
- Defined in:
- lib/flok/hooks_compiler.rb
Class Method Summary collapse
-
.compile(src, manifest) ⇒ Object
Returns a new copy of the source transformed as described by the manifest.
Class Method Details
.compile(src, manifest) ⇒ Object
Returns a new copy of the source transformed as described by the manifest
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/flok/hooks_compiler.rb', line 8 def self.compile(src, manifest) puts "a0" new_src = src.split("\n").map{|e| manifest.transform_line(e) }.join("\n") #Re-process macros puts "a1" new_src = Flok.macro_process new_src puts "a2" return new_src end |