Sha256: 84552967b71271680be36bbf98e717488e33b6aa50c3438414d1e6d591244137
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caramelize-1.0.0 | lib/caramelize/filter_processor.rb |