Sha256: 6066cf22b0f935f2c4c3f70b3140403d13d49dca4a5defff4f6ccdfb8c0148e8
Contents?: true
Size: 394 Bytes
Versions: 30
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module Spotlight module PageContent # Sir-Trevor created content class SirTrevor def self.parse(page, attribute) content = page.read_attribute(attribute) content ||= [].to_json return SirTrevorRails::BlockArray.new if content.blank? SirTrevorRails::BlockArray.from_json(content, page) end end end end
Version data entries
30 entries across 30 versions & 1 rubygems