Sha256: ab1fe667ab269358e5dc30b98c19961a84299a399c0203315814a5d1fca6c74d
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
module CodeLister class Main class << self def run(options = {}) args = default_options.merge(options) files = CodeLister.files(args) # Now filter out the list if any 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
code_lister-0.1.0 | lib/code_lister/main.rb |
code_lister-0.0.9 | lib/code_lister/main.rb |
code_lister-0.0.8 | lib/code_lister/main.rb |
code_lister-0.0.7 | lib/code_lister/main.rb |