Sha256: 9d5b35dab474150a49d03056e9a46d7474b22f51cffcc6fe86c7f6d9efe261d5

Contents?: true

Size: 348 Bytes

Versions: 29

Compression:

Stored size: 348 Bytes

Contents

module UniverseCompiler
  module Utils

    module BasicLogger

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

      def logger=(logger)
        @logger = logger
        yield logger if block_given?
      end

      def logger
        @logger ||= NullLogger.new
      end

    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
universe_compiler-0.5.6 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.5.5 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.5.4 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.5.3 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.5.2 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.5.1 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.4.3 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.4.2 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.4.1 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.4.0 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.12 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.11 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.10 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.9 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.8 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.7 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.6 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.5 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.4 lib/universe_compiler/utils/basic_logger.rb
universe_compiler-0.3.3 lib/universe_compiler/utils/basic_logger.rb