lib/antelope/ace/grammar/generation.rb in antelope-0.1.1 vs lib/antelope/ace/grammar/generation.rb in antelope-0.1.2

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + module Antelope module Ace class Grammar # The default modifiers for generation. It's not really @@ -32,10 +34,13 @@ def generate(options = {}, generators = :guess, modifiers = DEFAULT_MODIFIERS) mods = modifiers.map(&:last). map { |x| x.new(self) } - mods.map(&:call) + mods.each do |mod| + puts "Running mod #{mod.class}..." + mod.call + end hash = Hash[modifiers.map(&:first).zip(mods)] # This is when we'd generate find_generators(generators, options).each do |gen| gen.new(self, hash).generate