Class: IndexHtml::Main

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

Class Method Summary collapse

Class Method Details

.run(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/index_html/main.rb', line 4

def run(options = {})
  files = CodeLister.files options || []
  unless files.empty?
    IndexHtml.htmlify files, options
    puts "FYI: your result is in #{options[:output]}"
  else
    puts "No match found for your options :#{options}"
  end
end