Class: Context::ContextStruct Private

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/context.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Struct describing the current execution context.

Instance Method Summary collapse

Constructor Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ContextStruct.



29
30
31
32
33
# File 'brew/Library/Homebrew/context.rb', line 29

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. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


35
36
37
# File 'brew/Library/Homebrew/context.rb', line 35

def debug?
  @debug
end

#quiet?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


39
40
41
# File 'brew/Library/Homebrew/context.rb', line 39

def quiet?
  @quiet
end

#verbose?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


43
44
45
# File 'brew/Library/Homebrew/context.rb', line 43

def verbose?
  @verbose
end