Class: ShellOpts::Program

Inherits:
Command
  • Object
show all
Defined in:
lib/shellopts/program.rb

Overview

The top-level command

Constant Summary

Constants inherited from Command

Command::OVERRIDEABLE_METHOD_NAMES, Command::RESERVED_OPTION_NAMES

Instance Attribute Summary collapse

Attributes inherited from Command

#__grammar__, #__option_hash__, #__option_list__, #__option_values__, #__supercommand__

Instance Method Summary collapse

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

#initializeProgram

Returns a new instance of Program.



314
315
316
317
318
319
# File 'lib/shellopts/program.rb', line 314

def initialize
  super
  @__quiet__ = false
  @__verbose__ = 0
  @__debug__ = false
end

Instance Attribute Details

#__debug__Object

Returns the value of attribute __debug__.



312
313
314
# File 'lib/shellopts/program.rb', line 312

def __debug__
  @__debug__
end

#__quiet__Object

Accessors for standard options values that are not affected if the option is renamed



310
311
312
# File 'lib/shellopts/program.rb', line 310

def __quiet__
  @__quiet__
end

#__verbose__Object

Returns the value of attribute __verbose__.



311
312
313
# File 'lib/shellopts/program.rb', line 311

def __verbose__
  @__verbose__
end