Class: Sicily::FileProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/sicily/file_processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileProcessor

Returns a new instance of FileProcessor.



5
6
7
8
9
# File 'lib/sicily/file_processor.rb', line 5

def initialize(path)
  @path = path
  @tag = File.basename(path)
  info 'Start processing...'
end

Instance Method Details

#info(message) ⇒ Object



11
12
13
# File 'lib/sicily/file_processor.rb', line 11

def info(message)
  Sicily.logger.info "#{@tag}\t=>\t#{message}"
end