Sha256: 2fc3a796679e7c9229779558c5279492316188179b0d2c51fc957231daa6a0ad
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 Bytes
Contents
require "treetop" require "polyglot" require "flannel/block" require "flannel/base_block" require 'flannel/wrappable' require 'flannel/feed_parser' require 'flannel/file_cache' require 'flannel/block_cutter' 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.13 | lib/flannel.rb |
flannel-0.2.12 | lib/flannel.rb |
flannel-0.2.11 | lib/flannel.rb |
flannel-0.2.10 | lib/flannel.rb |