require 'gollum-lib' require 'ruby-progressbar' module Caramelize class FilterProcessor attr_reader :filters, :input_wiki def initialize(input_wiki) @filters = [] @input_wiki = input_wiki initialize_wiki_filters end def run(body) body_new = body filters.each do |filter| body_new = filter.new(body_new).run end body_new end private def initialize_wiki_filters filters << input_wiki.filters filters.flatten! end end end