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
2009-11-15 21:56:31 -05:00

20 lines
No EOL
390 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"
end
end
unless Object.method_defined?(:tap)
class Object #:nodoc:
def tap
yield self
self
end
end
end