Class: Evilution::CLI::Parser::OptionsBuilder Private
- Inherits:
-
Object
- Object
- Evilution::CLI::Parser::OptionsBuilder
- Defined in:
- lib/evilution/cli/parser/options_builder.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .build(options) ⇒ Object private
Instance Method Summary collapse
- #build ⇒ Object private
-
#initialize(options) ⇒ OptionsBuilder
constructor
private
A new instance of OptionsBuilder.
Constructor Details
#initialize(options) ⇒ OptionsBuilder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of OptionsBuilder.
12 13 14 |
# File 'lib/evilution/cli/parser/options_builder.rb', line 12 def initialize() @options = end |
Class Method Details
.build(options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'lib/evilution/cli/parser/options_builder.rb', line 8 def self.build() new().build end |
Instance Method Details
#build ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/evilution/cli/parser/options_builder.rb', line 16 def build OptionParser.new do |opts| opts. = "Usage: evilution [command] [options] [files...]" opts.version = Evilution::VERSION add_separators(opts) (opts) (opts) (opts) (opts) (opts) (opts) (opts) (opts) (opts) end end |