Sha256: cd29822f7328506f41aca665652acff260b83603cb1fde61e00853b2340513ec

Contents?: true

Size: 411 Bytes

Versions: 33

Compression:

Stored size: 411 Bytes

Contents

module Vidar
  class Log
    class << self
      def line
        puts "|#{'-' * 142}|"
      end

      def info(text, fill_with = "#")
        puts ColorizedString["#{fill_with} #{text} ".ljust(124, fill_with)].colorize(:light_green)
      end

      def error(text, fill_with = "#")
        puts ColorizedString["#{fill_with} #{text} ".ljust(124, fill_with)].colorize(:light_red)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
vidar-1.5.3 lib/vidar/log.rb
vidar-1.5.2 lib/vidar/log.rb
vidar-1.5.1 lib/vidar/log.rb
vidar-1.5.0 lib/vidar/log.rb
vidar-1.4.3 lib/vidar/log.rb
vidar-1.4.2 lib/vidar/log.rb
vidar-1.4.1 lib/vidar/log.rb
vidar-1.4.0 lib/vidar/log.rb
vidar-1.3.2 lib/vidar/log.rb
vidar-1.3.1 lib/vidar/log.rb
vidar-1.3.0 lib/vidar/log.rb
vidar-1.2.0 lib/vidar/log.rb
vidar-1.1.5 lib/vidar/log.rb