Sha256: 9636475638dcec00cf29eb8cd1fe589d3f861f8e7b614bd48e8cb098febbf7fe

Contents?: true

Size: 416 Bytes

Versions: 24

Compression:

Stored size: 416 Bytes

Contents

module Vidar
  class Log
    class << self
      def line
        puts "|" + "-" * 122 + "|"
      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

24 entries across 24 versions & 1 rubygems

Version Path
vidar-1.1.2 lib/vidar/log.rb
vidar-1.1.1 lib/vidar/log.rb
vidar-1.1.0 lib/vidar/log.rb
vidar-1.0.0 lib/vidar/log.rb
vidar-0.13.1 lib/vidar/log.rb
vidar-0.13.0 lib/vidar/log.rb
vidar-0.12.1 lib/vidar/log.rb
vidar-0.12.0 lib/vidar/log.rb
vidar-0.11.0 lib/vidar/log.rb
vidar-0.10.2 lib/vidar/log.rb
vidar-0.10.1 lib/vidar/log.rb
vidar-0.10.0 lib/vidar/log.rb
vidar-0.9.0 lib/vidar/log.rb
vidar-0.8.2 lib/vidar/log.rb
vidar-0.7.2 lib/vidar/log.rb
vidar-0.7.1 lib/vidar/log.rb
vidar-0.7.0 lib/vidar/log.rb
vidar-0.6.0 lib/vidar/log.rb
vidar-0.5.1 lib/vidar/log.rb
vidar-0.5.0 lib/vidar/log.rb