Class: Hologram::CodeExampleRenderer::DefinitionProxy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#example_template_nameObject

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_blockObject

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_blockObject

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_nameObject

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