Sha256: 4cd4a8c42cb3285f53dfe7a2fe69a19fe65ad01ba418c6bcac77e43cbf56170c

Contents?: true

Size: 630 Bytes

Versions: 2

Compression:

Stored size: 630 Bytes

Contents

# =========================================================================
#   Ceedling - Test-Centered Build System for C
#   ThrowTheSwitch.org
#   Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
#   SPDX-License-Identifier: MIT
# =========================================================================

require 'ceedling/constants'

class Verbosinator

  def should_output?(level)
    # Rely on global constant created at early stages of command line processing

    if !defined?(PROJECT_VERBOSITY)
      return (level <= Verbosity::NORMAL)
    end

    return (level <= PROJECT_VERBOSITY)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 lib/ceedling/verbosinator.rb
ceedling-1.0.0 lib/ceedling/verbosinator.rb