Class: Bookworm::ReportBuilder
- Inherits:
-
Object
- Object
- Bookworm::ReportBuilder
- Defined in:
- lib/bookworm/report_builder.rb
Instance Method Summary collapse
-
#initialize(knowledge_base, report_name) ⇒ ReportBuilder
constructor
A new instance of ReportBuilder.
Constructor Details
#initialize(knowledge_base, report_name) ⇒ ReportBuilder
Returns a new instance of ReportBuilder.
60 61 62 63 64 65 |
# File 'lib/bookworm/report_builder.rb', line 60 def initialize(knowledge_base, report_name) klass = Module.const_get("Bookworm::Reports::#{report_name}") output = klass.new(knowledge_base).output puts output end |