Sha256: c5ffbc47bac620348c1440af67827034aa1677fa8b140287c4e37b7544e3d965

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

# lib/your_linter_gem/logger.rb

module LinterChanges
  class Logger
    class << self
      attr_accessor :debug_mode

      def debug(message)
        puts "[DEBUG] #{message}" if debug_mode
      end

      def error(message)
        puts "[ERROR] #{message}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
linter_changes-0.2.0 lib/logger.rb
linter_changes-0.1.0 lib/logger.rb