Class: AbstractRenderer
- Inherits:
-
Object
- Object
- AbstractRenderer
- Defined in:
- lib/aspen/renderers/abstract_renderer.rb
Direct Known Subclasses
Aspen::Renderers::CypherBaseRenderer, Aspen::Renderers::CypherBatchRenderer, Aspen::Renderers::CypherRenderer, Aspen::Renderers::GexfRenderer, Aspen::Renderers::JsonRenderer
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
-
#initialize(statements, environment = {}) ⇒ AbstractRenderer
constructor
A new instance of AbstractRenderer.
- #nodes ⇒ Object
- #relationships ⇒ Object
- #render ⇒ Object
Constructor Details
#initialize(statements, environment = {}) ⇒ AbstractRenderer
Returns a new instance of AbstractRenderer.
5 6 7 8 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 5 def initialize(statements, environment = {}) @statements = statements @environment = environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
3 4 5 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 3 def environment @environment end |
#statements ⇒ Object (readonly)
Returns the value of attribute statements.
3 4 5 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 3 def statements @statements end |
Instance Method Details
#nodes ⇒ Object
14 15 16 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 14 def nodes raise NotImplementedError, "Find me in #{__FILE__}" end |
#relationships ⇒ Object
18 19 20 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 18 def relationships raise NotImplementedError, "Find me in #{__FILE__}" end |
#render ⇒ Object
10 11 12 |
# File 'lib/aspen/renderers/abstract_renderer.rb', line 10 def render raise NotImplementedError, "Find me in #{__FILE__}" end |