Class: Cliptic::Terminal::Reset_Stats

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

Class Method Summary collapse

Class Method Details

.routeObject



39
40
41
42
43
44
45
# File 'lib/cliptic/terminal.rb', line 39

def self.route
  if valid_options.include?(c = ARGV.shift)
    ->{confirm_reset(c)}
  else 
    ->{puts "Unknown option #{c}"}
  end
end