Sha256: 221386e7dc59f32c6ce80c148d9c7c309a2bddf35ce71f0c4781205e46391d95
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 Bytes
Contents
require 'thor' module Dotmoji class Console < Thor desc "display [OPTION]", "display dot data" option :text, type: :string, required: true, aliases: '-t', desc: 'text' def display str = options[:text] data = Dotmoji.map_data(str) data.each do |y| y.each do |x| print x == 1 ? '#' : ' ' end print "\n" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dotmoji-0.0.2 | lib/dotmoji/console.rb |
dotmoji-0.0.1 | lib/dotmoji/console.rb |