Class: SeccompTools::CLI::Base
- Inherits:
-
Object
- Object
- SeccompTools::CLI::Base
- Defined in:
- lib/seccomp-tools/cli/base.rb
Overview
Base class for handlers.
Instance Attribute Summary collapse
-
#argv ⇒ Array<String>
readonly
Arguments array.
-
#option ⇒ {Symbol => Object}
readonly
Options.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Base
constructor
Instantiate a Base object.
Constructor Details
#initialize(argv) ⇒ Base
Instantiate a SeccompTools::CLI::Base object.
19 20 21 22 |
# File 'lib/seccomp-tools/cli/base.rb', line 19 def initialize(argv) @option = {} @argv = argv end |
Instance Attribute Details
#argv ⇒ Array<String> (readonly)
14 15 16 |
# File 'lib/seccomp-tools/cli/base.rb', line 14 def argv @argv end |
#option ⇒ {Symbol => Object} (readonly)
12 13 14 |
# File 'lib/seccomp-tools/cli/base.rb', line 12 def option @option end |