From 53c142ca2642d7364bb306fe472c0835c62c3105 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 24 Jul 2015 00:39:26 +0200 Subject: [PATCH] Prefix compiler predicate methods with on_ --- lib/oga/xpath/compiler.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/oga/xpath/compiler.rb b/lib/oga/xpath/compiler.rb index d635661..c20f310 100644 --- a/lib/oga/xpath/compiler.rb +++ b/lib/oga/xpath/compiler.rb @@ -195,9 +195,9 @@ module Oga test, predicate = *ast if number?(predicate) - index_predicate(test, predicate, input, &block) + on_index_predicate(test, predicate, input, &block) else - expression_predicate(test, predicate, input, &block) + on_expression_predicate(test, predicate, input, &block) end end @@ -209,7 +209,7 @@ module Oga # @param [Oga::Ruby::Node] input # @return [Oga::Ruby::Node] # - def index_predicate(test, predicate, input) + def on_index_predicate(test, predicate, input) int1 = literal('1') index = to_int(predicate) index_var = literal('index') @@ -245,7 +245,7 @@ module Oga # @param [Oga::Ruby::Node] input # @return [Oga::Ruby::Node] # - def expression_predicate(test, predicate, input) + def on_expression_predicate(test, predicate, input) catch_arg = symbol(:predicate_matched) process(test, input) do |matched_test_node|