Class: Preek::Preek

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/preek.rb

Overview

whoop whoop

Instance Method Summary collapse

Instance Method Details

#parse(args) ⇒ Object



18
19
20
21
22
# File 'lib/preek.rb', line 18

def parse(args)
  files, @not_files = args.partition { |file| File.exists? file }
  report_smells_for files unless files.empty?
  report_not_files
end

#versionObject



13
14
15
# File 'lib/preek.rb', line 13

def version(*)
  say VERSION
end