Sha256: 8bbb9242e992231644e9d331c1041decd9eef075fb735484a44dc6c840d577a4
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caramelize-1.1.1 | lib/caramelize/filter_processor.rb |
caramelize-1.1.0 | lib/caramelize/filter_processor.rb |