Class: Molder::Command
- Inherits:
-
Object
- Object
- Molder::Command
- Defined in:
- lib/molder/command.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#concurrent ⇒ Object
Returns the value of attribute concurrent.
-
#config ⇒ Object
Returns the value of attribute config.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#name ⇒ Object
Returns the value of attribute name.
-
#supervise ⇒ Object
Returns the value of attribute supervise.
Instance Method Summary collapse
-
#initialize(name:, config:, desc:, supervise: true, concurrent: true, examples: [], args:) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(name:, config:, desc:, supervise: true, concurrent: true, examples: [], args:) ⇒ Command
Returns a new instance of Command.
5 6 7 8 9 10 11 12 13 |
# File 'lib/molder/command.rb', line 5 def initialize(name:, config:, desc:, supervise: true, concurrent: true, examples: [], args:) self.name = name self.config = config self.desc = desc self.supervise = supervise self.concurrent = concurrent self.examples = examples self.args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def args @args end |
#concurrent ⇒ Object
Returns the value of attribute concurrent.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def concurrent @concurrent end |
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def config @config end |
#desc ⇒ Object
Returns the value of attribute desc.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def desc @desc end |
#examples ⇒ Object
Returns the value of attribute examples.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def examples @examples end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def name @name end |
#supervise ⇒ Object
Returns the value of attribute supervise.
3 4 5 |
# File 'lib/molder/command.rb', line 3 def supervise @supervise end |