【文件属性】:
文件名称:jsdj:在Ruby中重新混合您JavaScript
文件大小:247KB
文件格式:ZIP
更新时间:2021-05-20 14:49:20
Ruby
这是什么?
Jsdj是为专门设计的,以允许javascript代码中的宏看起来像传统的javascript代码。
如何使用它
djc = Jsdj . new do | dj |
#When ever the function puts(...) is written in javascript,
#It will be replaced by what ever is returned within this
#block. i.e. makes the function call an inlined macro
dj . function :puts do | params |
raise "must have one function argument" if params . length != 1
raise "argument must b
【文件预览】:
jsdj-master
----lib()
--------jsdj.rb(60B)
--------jsdj()
----Gemfile(102B)
----spec()
--------compile_spec.rb(370B)
--------function_spec.rb(401B)
----Rakefile(817B)
----.travis.yml(28B)
----LICENSE(1KB)
----README.md(3KB)
----jsdj.gemspec(1KB)
----logo.png(241KB)
----.gitignore(190B)