Class: Hologram::CodeExampleRenderer::Template

Inherits:
Struct
  • Object
show all
Defined in:
lib/hologram/code_example_renderer/template.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.path_to_custom_example_templatesObject

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_nameObject

Returns the value of attribute template_name

Returns:

  • (Object)

    the current value of template_name



3
4
5
# File 'lib/hologram/code_example_renderer/template.rb', line 3

def template_name
  @template_name
end

Instance Method Details

#templateObject



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