diff --git a/lib/xpath.rb b/lib/xpath.rb index ef4d062..d4c7a2f 100644 --- a/lib/xpath.rb +++ b/lib/xpath.rb @@ -1,12 +1,13 @@ require 'nokogiri' +require 'xpath/dsl' +require 'xpath/expression' +require 'xpath/literal' +require 'xpath/union' +require 'xpath/renderer' +require 'xpath/html' + module XPath - autoload :Expression, 'xpath/expression' - autoload :Literal, 'xpath/literal' - autoload :Union, 'xpath/union' - autoload :Renderer, 'xpath/renderer' - autoload :HTML, 'xpath/html' - autoload :DSL, 'xpath/dsl' extend XPath::DSL::TopLevel include XPath::DSL::TopLevel diff --git a/lib/xpath/html.rb b/lib/xpath/html.rb index bce5b99..7feeb2a 100644 --- a/lib/xpath/html.rb +++ b/lib/xpath/html.rb @@ -1,6 +1,6 @@ module XPath module HTML - include XPath + include XPath::DSL::TopLevel extend self # Match an `a` link element.