Sha256: 0167e6bbc3e034a4e49f7da805d6352148e2330f06cdf77afd80e5c89ccd6426
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module Agave module Local module FieldType class RichText < Array def self.parse(ids, repo) items = if ids ids.map { |id| repo.find(id) } else [] end new(items) end def to_hash(max_depth = 3, current_depth = 0) map { |item| item.to_hash(max_depth, current_depth) } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems