Sha256: 12a0abd892ff62a2f2198af0e4744ff473ba636a0b3031b00ad793b8a01a2a7f

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

require 'awesome_print'
require 'colorize'

module Elsmore
  class Emitter
    def newline
      say "\n"
    end

    def say value
      puts value
    end

    def dot
      print ".".colorize(:green)
    end

    def x
      print "x".colorize(:red)
    end

    def unsure
      print "?".colorize(:blue)
    end

    def pretty value
      ap value
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
elsmore-0.1.7 lib/elsmore/emitter.rb
elsmore-0.1.6 lib/elsmore/emitter.rb
elsmore-0.1.5 lib/elsmore/emitter.rb
elsmore-0.1.4 lib/elsmore/emitter.rb
elsmore-0.1.3 lib/elsmore/emitter.rb
elsmore-0.1.2 lib/elsmore/emitter.rb
elsmore-0.1.1 lib/elsmore/emitter.rb