lib/qo.rb in qo-0.1.5 vs lib/qo.rb in qo-0.1.6

- old
+ new

@@ -18,9 +18,13 @@ did_match, match_result = matcher.call(data) break match_result if did_match } end + def match_fn(*qo_matchers) + -> data { match(data, *qo_matchers) } + end + def and(*array_matchers, **keyword_matchers) Qo::Matcher.new('and', *array_matchers, **keyword_matchers) end def [](*array_matchers, **keyword_matchers)