Class: Context::ContextStruct Private
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) ⇒ ContextStruct
constructor
private
A new instance of ContextStruct.
-
#quiet? ⇒ Boolean
private
-
#verbose? ⇒ Boolean
private
Constructor Details
#initialize(debug: nil, quiet: nil, verbose: nil) ⇒ ContextStruct
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 a new instance of ContextStruct.
30 31 32 33 34 |
# File 'context.rb', line 30 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.
36 37 38 |
# File 'context.rb', line 36 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.
40 41 42 |
# File 'context.rb', line 40 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.
44 45 46 |
# File 'context.rb', line 44 def verbose? @verbose == true end |