Class: Hologram::CodeExampleRenderer::DefinitionProxy
- Inherits:
-
Object
- Object
- Hologram::CodeExampleRenderer::DefinitionProxy
- Defined in:
- lib/hologram/code_example_renderer/factory.rb
Instance Attribute Summary collapse
-
#example_template_name ⇒ Object
readonly
Returns the value of attribute example_template_name.
-
#lexer_block ⇒ Object
readonly
Returns the value of attribute lexer_block.
-
#rendered_example_block ⇒ Object
readonly
Returns the value of attribute rendered_example_block.
-
#table_template_name ⇒ Object
readonly
Returns the value of attribute table_template_name.
Instance Method Summary collapse
- #example_template(template_name) ⇒ Object
- #lexer(&block) ⇒ Object
- #rendered_example(&block) ⇒ Object
- #table_template(template_name) ⇒ Object
Instance Attribute Details
#example_template_name ⇒ Object
Returns the value of attribute example_template_name.
35 36 37 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 35 def example_template_name @example_template_name end |
#lexer_block ⇒ Object
Returns the value of attribute lexer_block.
35 36 37 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 35 def lexer_block @lexer_block end |
#rendered_example_block ⇒ Object
Returns the value of attribute rendered_example_block.
35 36 37 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 35 def rendered_example_block @rendered_example_block end |
#table_template_name ⇒ Object
Returns the value of attribute table_template_name.
35 36 37 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 35 def table_template_name @table_template_name end |
Instance Method Details
#example_template(template_name) ⇒ Object
38 39 40 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 38 def example_template(template_name) self.example_template_name = template_name end |
#lexer(&block) ⇒ Object
46 47 48 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 46 def lexer(&block) self.lexer_block = block end |
#rendered_example(&block) ⇒ Object
50 51 52 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 50 def rendered_example(&block) self.rendered_example_block = block end |
#table_template(template_name) ⇒ Object
42 43 44 |
# File 'lib/hologram/code_example_renderer/factory.rb', line 42 def table_template(template_name) self.table_template_name = template_name end |