Sha256: c9036b128f1156bb8b5fba77083a9a4bfd4f47959e679e0da8a29ede54546e26
Contents?: true
Size: 712 Bytes
Versions: 6
Compression:
Stored size: 712 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