Class: Privacy::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/privacy.rb

Instance Method Summary collapse

Instance Method Details

#process(file = nil) ⇒ Object



8
9
10
11
# File 'lib/privacy.rb', line 8

def process(file = nil)
  file.nil? ? Dir.glob("*.xlsx") { |file| Processor.new(file) }
            : Processor.new(file)
end