Sha256: e3438cbe9a792a3be504dbce591e21018bbf0fc299d03adcfc88d04a44ddf331
Contents?: true
Size: 618 Bytes
Versions: 35
Compression:
Stored size: 618 Bytes
Contents
# frozen_string_literal: true module XPath class Union include Enumerable attr_reader :expressions alias_method :arguments, :expressions def initialize(*expressions) @expressions = expressions end def expression :union end def each(&block) arguments.each(&block) end def method_missing(*args) # rubocop:disable Style/MethodMissingSuper, Style/MissingRespondToMissing XPath::Union.new(*arguments.map { |e| e.send(*args) }) end def to_xpath(type = nil) Renderer.render(self, type) end alias_method :to_s, :to_xpath end end
Version data entries
35 entries across 23 versions & 6 rubygems