mirror of
https://github.com/rubyjs/therubyrhino
synced 2023-03-27 23:21:34 -04:00
17 lines
No EOL
227 B
Ruby
17 lines
No EOL
227 B
Ruby
require 'java'
|
|
require 'rhino/rhino-1.7R2.jar'
|
|
|
|
module Rhino
|
|
module J
|
|
import "org.mozilla.javascript"
|
|
end
|
|
end
|
|
|
|
unless Object.method_defined?(:tap)
|
|
class Object
|
|
def tap
|
|
yield self
|
|
self
|
|
end
|
|
end
|
|
end |