Class: Shellissimo::Help

Inherits:
Object
  • Object
show all
Defined in:
lib/shellissimo/help.rb

Overview

Generates help secion based on commands defined for a shell

Instance Method Summary collapse

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

#renderedObject



13
14
15
# File 'lib/shellissimo/help.rb', line 13

def rendered
  @rendered.dup.chomp
end