class Ovto::Runtime
Public Class Methods
new(app)
click to toggle source
# File lib/ovto/runtime.rb, line 5 def initialize(app) @app = app end
Public Instance Methods
run(view, container)
click to toggle source
# File lib/ovto/runtime.rb, line 9 def run(view, container) getState = ->{ @app.state } @scheduleRender = `Ovto.run(getState, view, container)` end
scheduleRender()
click to toggle source
# File lib/ovto/runtime.rb, line 14 def scheduleRender # An action is invoked before Ovto::Runtime#run. # Do nothing here because `scheduleRender` will eventually be called by #run return unless @scheduleRender @scheduleRender.call end