lib/sexp_path.rb in sexp_path-0.5.0 vs lib/sexp_path.rb in sexp_path-0.5.1
- old
+ new
@@ -1,6 +1,5 @@
-require 'rubygems'
require 'sexp_processor'
module SexpPath
# SexpPath Matchers are used to build SexpPath queries.
@@ -8,18 +7,17 @@
# See also: SexpQueryBuilder
module Matcher
end
end
-sexp_path_root = File.dirname(__FILE__)+'/sexp_path/'
%w[
traverse
sexp_query_builder
ruby_query_builder
sexp_result
sexp_collection
-
+
matcher/base
matcher/any
matcher/all
matcher/not
matcher/child
@@ -31,10 +29,10 @@
matcher/remaining
matcher/include
matcher/sibling
].each do |path|
- require sexp_path_root+path
+ require_relative "./sexp_path/#{path}"
end
# Pattern building helper, see SexpQueryBuilder
def Q?(&block)
SexpPath::SexpQueryBuilder.do(&block)
\ No newline at end of file