mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
17 lines
271 B
Ruby
17 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
module XPath
|
|
class Renderer
|
|
def join(*expressions)
|
|
expressions.join('/')
|
|
end
|
|
end
|
|
end
|
|
|
|
module XPath
|
|
module DSL
|
|
def join(*expressions)
|
|
XPath::Expression.new(:join, *[self, expressions].flatten)
|
|
end
|
|
end
|
|
end
|