Sha256: 3669af19c45df6838c98447f558d78d6a157befd58aa0559488b8197e1c79e25
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code_lister-0.1.1 | lib/code_lister/main.rb |