Class: Belafonte::Help::Generator
- Inherits:
-
Object
- Object
- Belafonte::Help::Generator
- Defined in:
- lib/belafonte/help/generator.rb
Class Method Summary collapse
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(app) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(app) ⇒ Generator
17 18 19 20 21 |
# File 'lib/belafonte/help/generator.rb', line 17 def initialize(app) self.class.set_target(@app = app) app.extend(AppExtensions) @content = name_section + synopsis + + commands end |
Class Method Details
.set_target(app) ⇒ Object
9 10 11 |
# File 'lib/belafonte/help/generator.rb', line 9 def self.set_target(app) @target = app end |
.target ⇒ Object
13 14 15 |
# File 'lib/belafonte/help/generator.rb', line 13 def self.target @target end |
Instance Method Details
#content ⇒ Object
23 24 25 |
# File 'lib/belafonte/help/generator.rb', line 23 def content @content end |