From 5dfe70eb676918405f1e30f39a32c9ec1599080a Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Fri, 16 Jul 2010 22:08:39 +0200 Subject: [PATCH] Fixup documentation for XPath class --- lib/capybara/xpath.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/capybara/xpath.rb b/lib/capybara/xpath.rb index 2929f9e7..bafedfd2 100644 --- a/lib/capybara/xpath.rb +++ b/lib/capybara/xpath.rb @@ -1,7 +1,13 @@ module Capybara - # this is a class for generating XPath queries, use it like this: + + ## + # + # This is a class for generating XPath queries, use it like this: + # # Xpath.text_field('foo').link('blah').to_s - # this will generate an XPath that matches either a text field or a link + # + # This will generate an XPath that matches either a text field or a link. + # class XPath class << self