Sha256: 2f910242144169cf27f09d0cfcb3652c186c9d631485e722834f7576b33b6c72
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
# frozen_string_literal: true module Kitchen # An element for an example # class ExampleElement < ElementBase # Creates a new +ExampleElement+ # # @param node [Nokogiri::XML::Node] the node this element wraps # @param document [Document] this element's document # def initialize(node:, document: nil) super(node: node, document: document, enumerator_class: ExampleElementEnumerator) end # Returns the short type # @return [Symbol] # def self.short_type :example end # Returns the an enumerator for titles. # # @return [ElementEnumerator] # def titles search("[data-type='title']") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openstax_kitchen-9.2.0 | lib/kitchen/example_element.rb |
openstax_kitchen-9.1.0 | lib/kitchen/example_element.rb |
openstax_kitchen-9.0.0 | lib/kitchen/example_element.rb |