Sha256: bbb39b3b3e0a0cbeeda1d70450c28fcaf2170aa842e62741e53bf3504cc71192

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

module GitWakaTime
  class Log
    def initialize(msg, color = nil)
      @color = color
      @msg = msg
      print_message
    end

    def print_message
      if @color.nil?
        puts @msg
      else
        puts @msg.send(@color)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitwakatime-0.0.3 lib/gitwakatime/log.rb
gitwakatime-0.0.2 lib/gitwakatime/log.rb
gitwakatime-0.0.1 lib/gitwakatime/log.rb