Sha256: c9351ee653fb76353eff40eb3005bb6a9d9d91292718d92e032cd3cc596e3912
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
require 'flannel/wrappable' require 'flannel/feed_parser' require 'flannel/file_cache' require 'flannel/block_cutter' require 'flannel/text_block' require 'flannel/html_formatter' module Flannel def self.quilt markup, params={} @@cache = params[:cache] return nil unless markup cutter = Flannel::BlockCutter.new text_blocks = cutter.cut markup text_blocks.map { |text| text.to_h }.join("\n\n") end def self.cache @@cache end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flannel-0.2.7 | lib/flannel.rb |
flannel-0.2.6 | lib/flannel.rb |
flannel-0.2.5 | lib/flannel.rb |
flannel-0.2.4 | lib/flannel.rb |