Sha256: d5d0578419467f48babd19a22584ef0ea9ff66cae4e0d763260605cea672e230
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'sq_ruby_grep' SqRubyGrep.grep(file_path:'test/fixtures/text.txt', pattern: /non/, after_lines: 2, before_lines: 2, colorize: true).each do |result| p '------------' puts result.before_context puts '---' + result.match_line puts result.after_context p '------------' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sq_ruby_grep-0.0.3 | example.rb |