Sha256: f277f75d6418a3e19ec839ac8777b79b3b39a4ef7eb6f9b8f3f04f9cd6864fea
Contents?: true
Size: 287 Bytes
Versions: 101
Compression:
Stored size: 287 Bytes
Contents
class Knj::Jruby_compiler def initialize(args = {}) @args = args factory = javax.script.ScriptEngineManager.new engine = factory.getEngineByName("jruby") code = File.read(args[:path]) @script = engine.compile(code) end def run @script.eval end end
Version data entries
101 entries across 101 versions & 1 rubygems