Sha256: ac87d50f4ac647b9814480af6b9990e3004465d79c29953b772b5684280e0c01

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 Bytes

Contents

module Reflection
  module Support
    class Log
      
      attr_accessor :verbose
      
      def debug(message)
        puts "** #{message}" if Reflection.verbose == true && message && !message.empty?
      end
      
      def info(message)
        puts "** #{message}" if message && !message.empty?
      end
      
      def error(message)
        puts "!! #{message}" if message && !message.empty?
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
basiszwo-reflection-0.5.1 lib/reflection/support/log.rb
reflection-0.5.0 lib/reflection/support/log.rb
reflection-0.4.6 lib/reflection/support/log.rb
reflection-0.4.5 lib/reflection/support/log.rb
reflection-0.4.4 lib/reflection/support/log.rb
reflection-0.4.3 lib/reflection/support/log.rb