Class: Vtk::Commands::Module::Add
- Inherits:
-
Vtk::Command
- Object
- Vtk::Command
- Vtk::Commands::Module::Add
- Defined in:
- lib/vtk/commands/module/add.rb
Overview
Adds a new module to vets-api
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #execute(_input: $stdin, _output: $stdout) ⇒ Object
-
#initialize(name, options) ⇒ Add
constructor
A new instance of Add.
Methods inherited from Vtk::Command
#command, #cursor, #editor, #exec_exist?, #generator, #pager, #platform, #prompt, #screen, #which
Constructor Details
#initialize(name, options) ⇒ Add
Returns a new instance of Add.
12 13 14 15 16 17 |
# File 'lib/vtk/commands/module/add.rb', line 12 def initialize(name, ) @name = name @options = super() end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/vtk/commands/module/add.rb', line 10 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/vtk/commands/module/add.rb', line 10 def @options end |
Instance Method Details
#execute(_input: $stdin, _output: $stdout) ⇒ Object
19 20 21 |
# File 'lib/vtk/commands/module/add.rb', line 19 def execute(_input: $stdin, _output: $stdout) create_module name end |