Class: Alephant::Renderer::Renderer

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/alephant/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, data) ⇒ Renderer

Returns a new instance of Renderer.



16
17
18
19
# File 'lib/alephant/renderer.rb', line 16

def initialize(config, data)
  @config = config
  @data   = data
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'lib/alephant/renderer.rb', line 14

def config
  @config
end

#dataObject (readonly)

Returns the value of attribute data.



14
15
16
# File 'lib/alephant/renderer.rb', line 14

def data
  @data
end

Instance Method Details

#viewsObject



21
22
23
# File 'lib/alephant/renderer.rb', line 21

def views
  mapper.generate data
end