Sha256: 87ab834a4635b097571eed448276db177f5f0765a7c4fa802ed5693a5450723d
Contents?: true
Size: 978 Bytes
Versions: 27
Compression:
Stored size: 978 Bytes
Contents
# frozen_string_literal: true module Kitchen # An one-off element that isn't one of the main elements we have dedicated classes # for (like ChapterElement). Provides a way to set an arbitrary +short_type+ # class Element < ElementBase # Creates a new +Element+ # # @param node [Nokogiri::XML::Node] the node this element wraps # @param document [Document] this element's document # @param short_type [Symbol, String] the type for this element # def initialize(node:, document:, short_type: nil) super(node: node, document: document, enumerator_class: ElementEnumerator, short_type: short_type) end # Returns true if this class represents the element for the given node; always false # for this generic class # # @param node [Nokogiri::XML::Node] the underlying node # @return [Boolean] # def self.is_the_element_class_for?(_node, **) false end end end
Version data entries
27 entries across 27 versions & 1 rubygems