commonjs-rhino:Ruby中CommonJs对Rhino的支持

时间:2021-05-22 03:40:04
【文件属性】:
文件名称:commonjs-rhino:Ruby中CommonJs对Rhino的支持
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-22 03:40:04
Ruby 普通犀牛 CommonJs在Ruby中(特别是JRuby)对Rhino的支持。 commonjs-rhino允许您创建JavaScript上下文,其中包含可用于加载CommonJs模块的require方法。 安装 gem install commonjs-rhino 然后,在您的代码中的某处要求它: require 'commonjs-rhino' 请注意,该gem需要Mozilla的Rhino JavaScript环境,这意味着Rhino将需要位于Java类路径中。 commonjs-rhino是使用开发的。 您可能会发现在自己的项目中使用专家来管理commonjs-rhino的Java依赖关系很方便。 只需将专家添加到您的捆绑包中,然后在项目中添加以下行即可: require 'expert' Expert . environment . require_all requi
【文件预览】:
commonjs-rhino-master
----.ruby-version(13B)
----History.txt(20B)
----lib()
--------commonjs-rhino()
--------commonjs-rhino.rb(2KB)
----Gemfile(279B)
----commonjs-rhino.gemspec(628B)
----spec()
--------fixtures()
--------context_spec.rb(2KB)
--------spec_helper.rb(229B)
--------commonjs-rhino_spec.rb(418B)
----Rakefile(327B)
----.travis.yml(190B)
----README.md(2KB)
----pom.xml(578B)
----Jarfile(33B)
----.gitignore(42B)

网友评论