Sha256: 391dd8e9d3cd0c6019a01650552ea5b57ebbc4177bd6aebd12c67c49056fdc6f

Contents?: true

Size: 311 Bytes

Versions: 9

Compression:

Stored size: 311 Bytes

Contents

module UltraCommandLine
  module Utils

    module BasicLogger

      class NullLogger
        def method_missing(*args)
          # Do nothing
        end
      end

      def logger=(logger)
        @logger = logger
      end

      def logger
        @logger ||= NullLogger.new
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ultra_command_line-0.4.16 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.15 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.14 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.13 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.12 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.10 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.9 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.8 lib/ultra_command_line/utils/basic_logger.rb
ultra_command_line-0.4.7 lib/ultra_command_line/utils/basic_logger.rb