Sha256: b62154e7c9cf01a824ad9f220bfcd9f01088003392b3d5caaa9479441de11ba2

Contents?: true

Size: 435 Bytes

Versions: 42

Compression:

Stored size: 435 Bytes

Contents

module Nanoc::Filters
  # @api private
  class RubyPants < Nanoc::Filter
    requires 'rubypants'

    # Runs the content through [RubyPants](http://rubydoc.info/gems/rubypants/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, _params = {})
      # Get result
      ::RubyPants.new(content).to_html
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
nanoc-4.0.0b4 lib/nanoc/filters/rubypants.rb
nanoc-4.0.0b3 lib/nanoc/filters/rubypants.rb