Class: Cmdline::Command
- Inherits:
-
Struct
- Object
- Struct
- Cmdline::Command
- Defined in:
- lib/cmdline.rb,
lib/cmdline.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize ⇒ Command
Returns a new instance of Command.
73 74 75 76 77 |
# File 'lib/cmdline.rb', line 73 def initialize(*) super self.name ||= "" self.description ||= "" end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
66 67 68 |
# File 'lib/cmdline.rb', line 66 def description @description end |
#name ⇒ Object
Returns the value of attribute name
66 67 68 |
# File 'lib/cmdline.rb', line 66 def name @name end |