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.33.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.32.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.31.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.30.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.29.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.28.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.27.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.26.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.25.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.24.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.23.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.22.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.21.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.20.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.19.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.18.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.17.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.16.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.15.0 lib/draftjs_html/draftjs/entity_map.rb
draftjs_html-0.14.0 lib/draftjs_html/draftjs/entity_map.rb