Class: Gramrb::CLI
Instance Method Summary collapse
-
#initialize(path) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
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
#run ⇒ Object
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 |