class Kokki::CLI

Public Class Methods

start(input) click to toggle source
# File lib/kokki/cli.rb, line 5
def self.start(input)
  if input
    begin
      print Kokki.flagize(input.chomp)
    rescue Kokki::InvalidInputError => e
      puts e.message
    end
  else
    puts "Input not found: please give a word to convert."
  end
end