Class: Eskimo::Renderer
- Inherits:
-
Object
- Object
- Eskimo::Renderer
- Defined in:
- lib/eskimo/renderer.rb
Overview
Render a component or a list of ones.
Instance Method Summary collapse
- #apply(&components) ⇒ Object
-
#initialize(**props) ⇒ Renderer
constructor
A new instance of Renderer.
Constructor Details
#initialize(**props) ⇒ Renderer
Returns a new instance of Renderer
8 9 10 |
# File 'lib/eskimo/renderer.rb', line 8 def initialize(**props) @props = { **props, render: method(:render) } end |
Instance Method Details
#apply(&components) ⇒ Object
14 15 16 |
# File 'lib/eskimo/renderer.rb', line 14 def apply(&components) render(components) end |