Class: Rootage::Help
- Inherits:
-
Object
- Object
- Rootage::Help
- Defined in:
- lib/rootage/help.rb
Direct Known Subclasses
Constant Summary collapse
- FORMAT =
Known format table.
{}
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
Class Method Summary collapse
-
.find(format) ⇒ Class
Find the named format.
-
.register(name, klass = self) ⇒ void
Register the help format.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ Help
constructor
A new instance of Help.
Constructor Details
#initialize(cmd) ⇒ Help
Returns a new instance of Help.
31 32 33 |
# File 'lib/rootage/help.rb', line 31 def initialize(cmd) @cmd = cmd end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
27 28 29 |
# File 'lib/rootage/help.rb', line 27 def cmd @cmd end |