Class: Cmdlib::Command
- Inherits:
-
Object
- Object
- Cmdlib::Command
- Defined in:
- lib/cmdlib/command.rb
Overview
Class for create command object.
Instance Attribute Summary collapse
-
#argnum ⇒ Object
Numbers of required arguments.
-
#describe ⇒ Object
Contain object with describe text.
Instance Method Summary collapse
- #handler ⇒ Object
-
#initialize ⇒ Command
constructor
A new instance of Command.
Constructor Details
Instance Attribute Details
#argnum ⇒ Object
Numbers of required arguments.
9 10 11 |
# File 'lib/cmdlib/command.rb', line 9 def argnum @argnum end |
#describe ⇒ Object
Contain object with describe text.
6 7 8 |
# File 'lib/cmdlib/command.rb', line 6 def describe @describe end |
Instance Method Details
#handler ⇒ Object
16 17 18 |
# File 'lib/cmdlib/command.rb', line 16 def handler puts "fatal error: do not set handler for '#{@describe.oname}' command." end |