Method: Capybara::Selector::XPathBuilder#initialize

Defined in:
lib/capybara/selector/builders/xpath_builder.rb

#initialize(expression) ⇒ XPathBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of XPathBuilder.



9
10
11
# File 'lib/capybara/selector/builders/xpath_builder.rb', line 9

def initialize(expression)
  @expression = expression || ''
end