Sha256: 6416148e3284a2faa329741e381201ccd94dd320606cdc0d1d164a7aef4322e7
Contents?: true
Size: 692 Bytes
Versions: 6
Compression:
Stored size: 692 Bytes
Contents
module CodeLister class Main class << self def run(options = {}) args = default_options.merge(options) files = CodeLister.files(args) inc_words = args.fetch(:inc_words, []) exc_words = args.fetch(:exc_words, []) files = CodeLister.filter(files, inc_words: inc_words, exc_words: exc_words) puts files files end private def default_options { base_dir: Dir.pwd, recursive: true, ignore_case: true, inc_words: [], exc_words: [], exts: [], non_exts: [] } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems