1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
therubyrhino/lib/rhino/java.rb
Renier Morales 08166f1b9c Incoming regular expressions were being converted to the wrong type. Fix
for invalid character error in the step matching.
2010-08-11 22:55:18 +08:00

24 lines
463 B
Ruby

require 'java'
require 'rhino/rhino-1.7R2.jar'
module Rhino
# This module contains all the native Rhino objects implemented in Java
# e.g.
# Rhino::J::NativeObject # => org.mozilla.javascript.NativeObject
module J
import "org.mozilla.javascript"
module Regexp
import "org.mozilla.javascript.regexp"
end
end
end
unless Object.method_defined?(:tap)
class Object #:nodoc:
def tap
yield self
self
end
end
end