class JS::RequireRemote::Evaluator
Execute the body of the response and record the URL.
Public Instance Methods
evaluate(code, filename, final_url)
click to toggle source
# File packages/gems/js/lib/js/require_remote/evaluator.rb, line 5 def evaluate(code, filename, final_url) Kernel.eval(code, ::Object::TOPLEVEL_BINDING, filename) $LOADED_FEATURES << final_url end
evaluated?(url)
click to toggle source
# File packages/gems/js/lib/js/require_remote/evaluator.rb, line 10 def evaluated?(url) $LOADED_FEATURES.include?(url) end