Spec-Zone.ru › Homebrew

Class: Context::ContextStruct Private

Inherits:
Object
  • Object
  • Context::ContextStruct
show all
Defined in:
context.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Struct describing the current execution context.

Instance Method Summary collapse

  • #debug? ⇒ Boolean private
  • #initialize(debug: nil, quiet: nil, verbose: nil) ⇒ void constructor private
  • #quiet? ⇒ Boolean private
  • #verbose? ⇒ Boolean private

Constructor Details

#initialize(debug: nil, quiet: nil, verbose: nil) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • debug (Boolean, nil) (defaults to: nil)
  • quiet (Boolean, nil) (defaults to: nil)
  • verbose (Boolean, nil) (defaults to: nil)


13
14
15
16
17
# File 'context.rb', line 13

def initialize(debug: nil, quiet: nil, verbose: nil)
  @debug = debug
  @quiet = quiet
  @verbose = verbose
end

Instance Method Details

#debug? ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


20
21
22
# File 'context.rb', line 20

def debug?
  @debug == true
end

#quiet? ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


25
26
27
# File 'context.rb', line 25

def quiet?
  @quiet == true
end

#verbose? ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


30
31
32
# File 'context.rb', line 30

def verbose?
  @verbose == true
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Context/ContextStruct.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API