Class: Hypernova::BlankRenderer
- Inherits:
-
Object
- Object
- Hypernova::BlankRenderer
- Defined in:
- lib/hypernova/blank_renderer.rb
Instance Method Summary collapse
-
#initialize(job) ⇒ BlankRenderer
constructor
A new instance of BlankRenderer.
- #render ⇒ Object
Constructor Details
#initialize(job) ⇒ BlankRenderer
Returns a new instance of BlankRenderer.
4 5 6 |
# File 'lib/hypernova/blank_renderer.rb', line 4 def initialize(job) @job = job end |
Instance Method Details
#render ⇒ Object
8 9 10 11 12 13 |
# File 'lib/hypernova/blank_renderer.rb', line 8 def render <<-HTML <div data-hypernova-key="#{key}" data-hypernova-id="#{id}"></div> <script type="application/json" data-hypernova-key="#{key}" data-hypernova-id="#{id}"><!--#{encode}--></script> HTML end |