Sha256: 02a2f66619ec86efdb58473b5fa6192263ade508a51f98f36e615767de35305b

Contents?: true

Size: 326 Bytes

Versions: 15

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require_relative "draftjs_html/version"
require 'nokogiri'
require_relative 'draftjs_html/draftjs'
require_relative 'draftjs_html/to_html'

module DraftjsHtml
  class Error < StandardError; end

  def self.to_html(raw_draftjs, options: {})
    ToHtml.new(options).convert(raw_draftjs)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
draftjs_html-0.14.0 lib/draftjs_html.rb
draftjs_html-0.13.0 lib/draftjs_html.rb
draftjs_html-0.12.0 lib/draftjs_html.rb
draftjs_html-0.11.0 lib/draftjs_html.rb
draftjs_html-0.10.0 lib/draftjs_html.rb
draftjs_html-0.9.0 lib/draftjs_html.rb
draftjs_html-0.8.0 lib/draftjs_html.rb
draftjs_html-0.7.0 lib/draftjs_html.rb
draftjs_html-0.6.0 lib/draftjs_html.rb
draftjs_html-0.5.1 lib/draftjs_html.rb
draftjs_html-0.5.0 lib/draftjs_html.rb
draftjs_html-0.4.0 lib/draftjs_html.rb
draftjs_html-0.3.0 lib/draftjs_html.rb
draftjs_html-0.2.0 lib/draftjs_html.rb
draftjs_html-0.1.0 lib/draftjs_html.rb