class XPath::Union

Attributes

arguments[R]
expressions[R]

Public Class Methods

new(*expressions) click to toggle source
# File lib/xpath/union.rb, line 10
def initialize(*expressions)
  @expressions = expressions
end

Public Instance Methods

each(&block) click to toggle source
# File lib/xpath/union.rb, line 18
def each(&block)
  arguments.each(&block)
end
expression() click to toggle source
# File lib/xpath/union.rb, line 14
def expression
  :union
end
method_missing(*args) click to toggle source
# File lib/xpath/union.rb, line 22
def method_missing(*args) # rubocop:disable Style/MethodMissingSuper, Style/MissingRespondToMissing
  XPath::Union.new(*arguments.map { |e| e.send(*args) })
end
to_s(type = nil)
Alias for: to_xpath
to_xpath(type = nil) click to toggle source
# File lib/xpath/union.rb, line 26
def to_xpath(type = nil)
  Renderer.render(self, type)
end
Also aliased as: to_s