Class: TranscriptViewer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/transcript_viewer/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_templatesObject (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