Class: Yalphabetizer

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, options) ⇒ Yalphabetizer

Returns a new instance of Yalphabetizer.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/yalphabetizer.rb', line 10

def initialize(args, options)
  @args = args

  @reader_class = options[:reader_class]
  @finder = options[:finder]
  @alphabetizer_class = options[:alphabetizer_class]
  @writer_class = options[:writer_class]
  @offence_detector_class = options[:offence_detector_class]
  @logger = options[:logger]
  @file_yalphabetizer_class = options[:file_yalphabetizer_class]
end

Class Method Details

.call(args = [], **options) ⇒ Object



6
7
8
# File 'lib/yalphabetizer.rb', line 6

def self.call(args = [], **options)
  new(args, options).call
end

Instance Method Details

#callObject



22
23
24
25
26
# File 'lib/yalphabetizer.rb', line 22

def call
  initial_log
  process_files
  final_log
end