Class: Option 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 formula option.
Instance Attribute Summary collapse
- #description ⇒ Object readonly private
- #flag ⇒ Object readonly private
- #name ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(name, description = "") ⇒ Option
constructor
private
A new instance of Option.
Constructor Details
#initialize(name, description = "") ⇒ Option
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 Option.
8 9 10 11 12 |
# File 'options.rb', line 8 def initialize(name, description = "") @name = name @flag = "--#{name}" @description = description end |
Instance Attribute Details
#description ⇒ Object (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.
6 7 8 |
# File 'options.rb', line 6 def description @description end |
#flag ⇒ Object (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.
6 7 8 |
# File 'options.rb', line 6 def flag @flag end |
#name ⇒ Object (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.
6 7 8 |
# File 'options.rb', line 6 def name @name end |