Class: Shellissimo::Help
- Inherits:
-
Object
- Object
- Shellissimo::Help
- Defined in:
- lib/shellissimo/help.rb
Overview
Generates help secion based on commands defined for a shell
Instance Method Summary collapse
-
#initialize(commands) ⇒ Help
constructor
A new instance of Help.
- #rendered ⇒ Object
Constructor Details
#initialize(commands) ⇒ Help
Returns a new instance of Help.
7 8 9 10 11 |
# File 'lib/shellissimo/help.rb', line 7 def initialize(commands) @commands = commands @rendered = "" render end |
Instance Method Details
#rendered ⇒ Object
13 14 15 |
# File 'lib/shellissimo/help.rb', line 13 def rendered @rendered.dup.chomp end |