Class: Gramrb::CLI

Inherits:
Object
  • Object
show all
Includes:
Formatter
Defined in:
lib/gramrb/cli.rb

Instance Method Summary collapse

Methods included from Formatter

#cyan, #green, #pluralise, #red, #yellow

Constructor Details

#initialize(path) ⇒ CLI

Returns a new instance of CLI.



5
# File 'lib/gramrb/cli.rb', line 5

def initialize(path) = @path = path || '.'

Instance Method Details

#runObject



7
8
9
10
11
12
# File 'lib/gramrb/cli.rb', line 7

def run
  puts
  results = scan_files
  puts "\n"
  print_results(results)
end