lib/console/capture.rb in console-1.11.1 vs lib/console/capture.rb in console-1.12.0
- old
+ new
@@ -31,9 +31,13 @@
def last
@buffer.last
end
+ def include?(pattern)
+ JSON.dump(@buffer).include?(pattern)
+ end
+
def clear
@buffer.clear
end
def verbose!(value = true)