Sha256: 8860d1e804f9279eba112c5c605567db847256f65bda3ba3f6091d83b25f3998
Contents?: true
Size: 724 Bytes
Versions: 9
Compression:
Stored size: 724 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("span[data-type='title']") end end end
Version data entries
9 entries across 9 versions & 1 rubygems