Class: DeprecatedOption 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.
A deprecated formula option.
Instance Attribute Summary collapse
- #current ⇒ String readonly private
- #old ⇒ String readonly private
Instance Method Summary collapse
- #current_flag ⇒ String private
- #initialize(old, current) ⇒ void constructor private
- #old_flag ⇒ String private
Constructor Details
#initialize(old, current) ⇒ 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.
58 59 60 61 |
# File 'options.rb', line 58 def initialize(old, current) @old = old @current = current end |
Instance Attribute Details
#current ⇒ String (readonly)
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.
55 56 57 |
# File 'options.rb', line 55 def current @current end |
#old ⇒ String (readonly)
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.
55 56 57 |
# File 'options.rb', line 55 def old @old end |
Instance Method Details
#current_flag ⇒ String
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.
69 70 71 |
# File 'options.rb', line 69 def current_flag "--#{current}" end |
#old_flag ⇒ String
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.
64 65 66 |
# File 'options.rb', line 64 def old_flag "--#{old}" end |