Sha256: aeacbb73bed57bc74fa26c1f947fc45413f4fe44467598e01213d72ef2ee2861

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

require 'rainbow'

module Semmy
  module Shell
    extend self

    attr_accessor :silence

    def info(text)
      say(text, :green)
    end

    private

    def say(text, color)
      puts(Rainbow(text).color(color)) unless silence
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
semmy-0.2.1 lib/semmy/shell.rb
semmy-0.2.0 lib/semmy/shell.rb