Sha256: 338cb03a2d685140116efcf7b3850fd07d726e41fb2b8d2f8c55f95d267311ee
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true module TrajectPlus module Macros # Macros for extracting TEI values from Nokogiri documents module Tei NS = { tei: 'http://www.tei-c.org/ns/1.0' }.freeze def self.extended(mod) mod.extended Traject::Macros::NokogiriMacros end # @param xpath [String] the xpath query expression def extract_tei(xpath) extract_xpath(xpath, ns: NS) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
traject_plus-1.2.0 | lib/traject_plus/macros/tei.rb |