Sha256: 765348297984cd5d99ca66b0275004943161192676ac955b930f633b30e3decc
Contents?: true
Size: 358 Bytes
Versions: 19
Compression:
Stored size: 358 Bytes
Contents
package s3.website object Ruby { lazy val rubyRuntime = org.jruby.Ruby.newInstance() // Instantiate heavy object def rubyRegexMatches(text: String, regex: String) = { val z = rubyRuntime.evalScriptlet( s"""# encoding: utf-8 !!Regexp.new('$regex').match('$text')""" ) z.toJava(classOf[Boolean]).asInstanceOf[Boolean] } }
Version data entries
19 entries across 19 versions & 1 rubygems