class ContentBlockTools::ContentBlockReference
def find_all_in_document(document)
-
(Array
- An array of content block references)
def find_all_in_document(document) document.scan(ContentBlockReference::EMBED_REGEX).map do |match| ContentBlockTools.logger.info("Found Content Block Reference: #{match}") ContentBlockReference.new(document_type: match[1], identifier: match[2], embed_code: match[0]) end end