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 ⇒ String readonly private
- #flag ⇒ String readonly private
- #name ⇒ String readonly private
Instance Method Summary collapse
- #initialize(name, description = "") ⇒ void constructor private
Constructor Details
#initialize(name, description = "") ⇒ 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.
13 14 15 16 17 |
# File 'options.rb', line 13 def initialize(name, description = "") @name = name @flag = T.let("--#{name}", String) @description = description end |
Instance Attribute Details
#description ⇒ 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.
10 11 12 |
# File 'options.rb', line 10 def description @description end |
#flag ⇒ 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.
10 11 12 |
# File 'options.rb', line 10 def flag @flag end |
#name ⇒ 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.
7 8 9 |
# File 'options.rb', line 7 def name @name end |