Mange/roadie-rails

View on GitHub
lib/roadie/rails/document_builder.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Roadie
  module Rails
    class DocumentBuilder
      def self.build(html, options)
        document = Document.new(html)
        options.apply_to document
        document
      end
    end
  end
end