Class: AbstractRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/aspen/renderers/abstract_renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#environmentObject (readonly)

Returns the value of attribute environment.



3
4
5
# File 'lib/aspen/renderers/abstract_renderer.rb', line 3

def environment
  @environment
end

#statementsObject (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

#nodesObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/aspen/renderers/abstract_renderer.rb', line 14

def nodes
  raise NotImplementedError, "Find me in #{__FILE__}"
end

#relationshipsObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/aspen/renderers/abstract_renderer.rb', line 18

def relationships
  raise NotImplementedError, "Find me in #{__FILE__}"
end

#renderObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/aspen/renderers/abstract_renderer.rb', line 10

def render
  raise NotImplementedError, "Find me in #{__FILE__}"
end