lib/regexp-examples/helpers.rb in regexp-examples-0.2.0 vs lib/regexp-examples/helpers.rb in regexp-examples-0.2.1
- old
+ new
@@ -30,20 +30,7 @@
result.join
else
CaptureGroupResult.new(nil, subgroups, result.join)
end
end
-
- # TODO: For debugging only!! Delete this before v1.0
- def self.show(regexp)
- s = regexp.examples
- puts "#{regexp.inspect} --> #{s.inspect}"
- puts "Checking..."
- errors = s.reject {|string| string =~ regexp}
- if errors.size == 0
- puts "All strings match"
- else
- puts "These don't match: #{errors.inspect}"
- end
- end
end