Class: ShellOpts::Program
Overview
The top-level command
Constant Summary
Constants inherited from Command
Command::OVERRIDEABLE_METHOD_NAMES, Command::RESERVED_OPTION_NAMES
Instance Attribute Summary collapse
-
#__debug__ ⇒ Object
Returns the value of attribute __debug__.
-
#__quiet__ ⇒ Object
Returns the value of attribute __quiet__.
-
#__silent__ ⇒ Object
Accessors for standard options values that are not affected if the option is renamed.
-
#__verbose__ ⇒ Object
Returns the value of attribute __verbose__.
Attributes inherited from Command
#__grammar__, #__option_hash__, #__option_list__, #__option_values__, #__supercommand__
Instance Method Summary collapse
-
#initialize ⇒ Program
constructor
A new instance of Program.
Methods inherited from Command
#[], #__dump__, #__ident__, #__name__, #__subcommand__, #__subcommand__!, #__subcommands__, #__subcommands__!, #__uid__, dump, new, #subcommand, #subcommand!, #subcommands, #subcommands!, #supercommand!, #to_h, #to_h?
Constructor Details
#initialize ⇒ Program
Returns a new instance of Program.
327 328 329 330 331 332 333 |
# File 'lib/shellopts/program.rb', line 327 def initialize super @__silent__ = false @__quiet__ = false @__verbose__ = 0 @__debug__ = false end |
Instance Attribute Details
#__debug__ ⇒ Object
Returns the value of attribute __debug__.
325 326 327 |
# File 'lib/shellopts/program.rb', line 325 def __debug__ @__debug__ end |
#__quiet__ ⇒ Object
Returns the value of attribute __quiet__.
323 324 325 |
# File 'lib/shellopts/program.rb', line 323 def __quiet__ @__quiet__ end |
#__silent__ ⇒ Object
Accessors for standard options values that are not affected if the option is renamed
322 323 324 |
# File 'lib/shellopts/program.rb', line 322 def __silent__ @__silent__ end |
#__verbose__ ⇒ Object
Returns the value of attribute __verbose__.
324 325 326 |
# File 'lib/shellopts/program.rb', line 324 def __verbose__ @__verbose__ end |