lib/flannel/cutting_board.rb in flannel-0.2.1 vs lib/flannel/cutting_board.rb in flannel-0.2.3

- old
+ new

@@ -1,14 +1,10 @@ module Flannel class CuttingBoard - def initialize params={} - @params = params - end - def cut markup - shears = Flannel::Shears.new @params - squares = shears.cut markup - squares.map { |square| square.to_h }.join("\n\n") + cutter = Flannel::BlockCutter.new + text_blocks = cutter.cut markup + text_blocks.map { |text| text.to_h }.join("\n\n") end end end