Class: TranscriptViewer::Configuration
- Inherits:
-
Object
- Object
- TranscriptViewer::Configuration
- Defined in:
- lib/transcript_viewer/configuration.rb
Instance Attribute Summary collapse
-
#tool_templates ⇒ Object
readonly
Returns the value of attribute tool_templates.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #register_tool_template(tool_name, template_path) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 |
# File 'lib/transcript_viewer/configuration.rb', line 9 def initialize @tool_templates = ToolTemplateRegistry.new end |
Instance Attribute Details
#tool_templates ⇒ Object (readonly)
Returns the value of attribute tool_templates.
7 8 9 |
# File 'lib/transcript_viewer/configuration.rb', line 7 def tool_templates @tool_templates end |
Instance Method Details
#register_tool_template(tool_name, template_path) ⇒ Object
13 14 15 |
# File 'lib/transcript_viewer/configuration.rb', line 13 def register_tool_template(tool_name, template_path) tool_templates.register(tool_name, template_path) end |