README.md in yara-ffi-3.0.0 vs README.md in yara-ffi-3.1.0
- old
+ new
@@ -39,10 +39,10 @@
RULE
scanner = Yara::Scanner.new
scanner.add_rule(rule)
scanner.compile
-result = scanner.call("one day we were here and then we were not")
+result = scanner.call("one day we were here and then we were not").first
result.match?
# => true
scanner.close # run when you are done using the scanner API and want to free up memory.
Yara.stop # run when you are completely done using the Yara API to free up memory.