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.4.7 lib/nanoc/filters/rubypants.rb
nanoc-4.4.6 lib/nanoc/filters/rubypants.rb
nanoc-4.4.5 lib/nanoc/filters/rubypants.rb
nanoc-4.4.4 lib/nanoc/filters/rubypants.rb
nanoc-4.4.3 lib/nanoc/filters/rubypants.rb
nanoc-4.4.2 lib/nanoc/filters/rubypants.rb
nanoc-4.4.1 lib/nanoc/filters/rubypants.rb
nanoc-4.4.0 lib/nanoc/filters/rubypants.rb
nanoc-4.3.8 lib/nanoc/filters/rubypants.rb
nanoc-4.3.7 lib/nanoc/filters/rubypants.rb
nanoc-4.3.6 lib/nanoc/filters/rubypants.rb
nanoc-4.3.5 lib/nanoc/filters/rubypants.rb
nanoc-4.3.4 lib/nanoc/filters/rubypants.rb
nanoc-4.3.3 lib/nanoc/filters/rubypants.rb
nanoc-4.3.2 lib/nanoc/filters/rubypants.rb
nanoc-4.3.1 lib/nanoc/filters/rubypants.rb
nanoc-4.3.0 lib/nanoc/filters/rubypants.rb
nanoc-4.2.4 lib/nanoc/filters/rubypants.rb
nanoc-4.2.3 lib/nanoc/filters/rubypants.rb
nanoc-4.2.2 lib/nanoc/filters/rubypants.rb