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
- #deferred_environment_expansion? ⇒ Boolean private
- #initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false, tolerate_formula_load_errors: false) ⇒ void constructor private
- #quiet? ⇒ Boolean private
- #tolerate_formula_load_errors? ⇒ Boolean private
- #verbose? ⇒ Boolean private
Constructor Details
#initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false, tolerate_formula_load_errors: false) ⇒ 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.
21 22 23 24 25 26 27 28 |
# File 'context.rb', line 21 def initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false, tolerate_formula_load_errors: false) @debug = debug @quiet = quiet @verbose = verbose @deferred_environment_expansion = deferred_environment_expansion @tolerate_formula_load_errors = tolerate_formula_load_errors 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.
31 32 33 |
# File 'context.rb', line 31 def debug? @debug end |
#deferred_environment_expansion? ⇒ 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.
46 47 48 |
# File 'context.rb', line 46 def deferred_environment_expansion? @deferred_environment_expansion 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.
36 37 38 |
# File 'context.rb', line 36 def quiet? @quiet end |
#tolerate_formula_load_errors? ⇒ 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.
51 |
# File 'context.rb', line 51 def tolerate_formula_load_errors? = @tolerate_formula_load_errors |
#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.
41 42 43 |
# File 'context.rb', line 41 def verbose? @verbose end |