Sha256: 4d4e5f124c6e3b7e3b83cad11cb028ce873c702565a24acb7fd10da86e0cb947
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
require 'bitmapped/bitmap' require 'readline' module Bitmapped class Cli class << self def start begin bitmap = Bitmap.new puts "Bitmapped Command Centre (Ctrl+C to exit):" loop do input = split_input(Readline.readline("> ")) bitmap.command(input) end rescue Interrupt => interrupt puts "\nExiting..." exit end end def split_input(input) input.strip.split(' ') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitmapped-0.2.0 | lib/bitmapped/cli.rb |