Class: Eskimo::Core::Renderer
- Inherits:
-
Object
- Object
- Eskimo::Core::Renderer
- Defined in:
- gems/eskimo-core/lib/eskimo/core/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 'gems/eskimo-core/lib/eskimo/core/renderer.rb', line 8 def initialize(**props) @props = { **props, render: method(:render) } end |
Instance Method Details
#apply(&components) ⇒ Object
14 15 16 |
# File 'gems/eskimo-core/lib/eskimo/core/renderer.rb', line 14 def apply(&components) render(components) end |