module Rhino::Ruby
Public Class Methods
cache(key) { || ... }
click to toggle source
# File lib/rhino/ruby.rb, line 249 def self.cache(key, &block) context = JS::Context.getCurrentContext context ? context.cache(key, &block) : yield end
wrap_error(e)
click to toggle source
# File lib/rhino/ruby.rb, line 269 def self.wrap_error(e) Exception.new(e) end