Class: Alephant::Renderer::Renderer
- Inherits:
-
Object
- Object
- Alephant::Renderer::Renderer
- Includes:
- Logger
- Defined in:
- lib/alephant/renderer.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(config, data) ⇒ Renderer
constructor
A new instance of Renderer.
- #views ⇒ Object
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/alephant/renderer.rb', line 14 def config @config end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
14 15 16 |
# File 'lib/alephant/renderer.rb', line 14 def data @data end |
Instance Method Details
#views ⇒ Object
21 22 23 |
# File 'lib/alephant/renderer.rb', line 21 def views mapper.generate data end |