Sha256: 11e0b1306830cde7a353d15c142b388fb2b7224c7550cf884a7b88bba7134c0f
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true module ConvenientService module Dependencies module Queries module Gems class Logger class << self ## # @api private # # @return [Boolean] # # @internal # `Style/TernaryParentheses` is disabled since `defined?` has too low priority without parentheses. # # rubocop:disable Style/TernaryParentheses def loaded? (defined? ::Logger) ? true : false end # rubocop:enable Style/TernaryParentheses ## # @api private # # @return [ConvenientService::Dependencies::Queries::Version] # # @internal # - https://github.com/ruby/logger/blob/v1.5.3/lib/logger/version.rb # def version loaded? ? Version.new(::Logger::VERSION) : Version.null_version end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.19.1 | lib/convenient_service/dependencies/queries/gems/logger.rb |
convenient_service-0.19.0 | lib/convenient_service/dependencies/queries/gems/logger.rb |