Class: Belafonte::Help::Generator

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

Class Method Summary collapse

Instance Method Summary collapse

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 + options + 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

.targetObject



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

def self.target
  @target
end

Instance Method Details

#contentObject



23
24
25
# File 'lib/belafonte/help/generator.rb', line 23

def content
  @content
end