all_variables()
click to toggle source
def all_variables
@watch_variables || {}
end
clear()
click to toggle source
def clear
@watch_variables = {}
end
render()
click to toggle source
def render
JS_FUNCTION + "window.gon.watchedVariables=#{Gon::JsonDumper.dump all_variables};"
end
render_amd()
click to toggle source
def render_amd
JS_FUNCTION + "gon.watchedVariables=#{Gon::JsonDumper.dump all_variables};"
end