mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
08166f1b9c
for invalid character error in the step matching.
24 lines
463 B
Ruby
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
|