lib/raabro.rb in raabro-1.3.1 vs lib/raabro.rb in raabro-1.3.2

- old
+ new

@@ -1,9 +1,9 @@ module Raabro - VERSION = '1.3.1' + VERSION = '1.3.2' class Input attr_accessor :string, :offset attr_reader :options @@ -563,10 +563,10 @@ t ? rewrite(t) : nil end def rewrite(tree) - return !! methods.find { |m| m.to_s.match(/^rewrite_/) } if tree == 0 + return !! methods.find { |m| m.to_s.match?(/^rewrite_/) } if tree == 0 # return true when "rewrite_xxx" methods seem to have been provided send("rewrite_#{tree.name}", tree) end