Class: Docbert::Parser::DefinitionNode

Inherits:
ExampleNode show all
Defined in:
lib/docbert/parser/definition_node.rb

Constant Summary

Constants inherited from ExampleNode

ExampleNode::BLANK_LINE, ExampleNode::EXAMPLE_KEYWORDS, ExampleNode::EXAMPLE_OUTLINE_KEYWORDS

Instance Method Summary collapse

Methods inherited from ExampleNode

as_background, as_definition, as_example, as_example_outline, #to_element

Constructor Details

#initialize(element_factory, fragment) ⇒ DefinitionNode

Returns a new instance of DefinitionNode.



4
5
6
7
8
9
10
# File 'lib/docbert/parser/definition_node.rb', line 4

def initialize(element_factory, fragment)
  super :example_definition,
        EXAMPLE_DEFINITION_START,
        EXAMPLE_KEYWORDS,
        element_factory,
        fragment
end