Sha256: 455f236e2a6d13811e8491b1de04bf4b3976734bf7f0c04074c03258a5a67919

Contents?: true

Size: 268 Bytes

Versions: 34

Compression:

Stored size: 268 Bytes

Contents

# frozen_string_literal: true

module DraftjsHtml
  module Draftjs
    class EntityMap < Hash
      def self.parse(raw)
        instance = new
        raw.each { |key, raw_entity| instance[key] = Entity.parse(raw_entity) }
        instance
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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