Class: Hologram::CodeExampleRenderer::Template
- Inherits:
-
Struct
- Object
- Struct
- Hologram::CodeExampleRenderer::Template
- Defined in:
- lib/hologram/code_example_renderer/template.rb
Class Attribute Summary collapse
-
.path_to_custom_example_templates ⇒ Object
Returns the value of attribute path_to_custom_example_templates.
Instance Attribute Summary collapse
-
#template_name ⇒ Object
Returns the value of attribute template_name.
Instance Method Summary collapse
Class Attribute Details
.path_to_custom_example_templates ⇒ Object
Returns the value of attribute path_to_custom_example_templates.
10 11 12 |
# File 'lib/hologram/code_example_renderer/template.rb', line 10 def path_to_custom_example_templates @path_to_custom_example_templates end |
Instance Attribute Details
#template_name ⇒ Object
Returns the value of attribute template_name
3 4 5 |
# File 'lib/hologram/code_example_renderer/template.rb', line 3 def template_name @template_name end |
Instance Method Details
#template ⇒ Object
4 5 6 7 |
# File 'lib/hologram/code_example_renderer/template.rb', line 4 def template return nil if !template_filename File.read(template_filename) end |