【文件属性】:
文件名称:java:深夜编码冲刺所需的咖啡因提升
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-09 07:54:02
Ruby
Java:trade_mark:
深夜编码冲刺所需的咖啡因提升。
为什么
因为企业:trade_mark:
安装
gem install java或将gem 'java'添加到您的 Gemfile。
这个 gem 需要 Ruby 2.1.0+。
用法
目前,支持以下关键字: new 、 void 、 byte 、 short 、 int 、 long 、 float 、 double 、 bool 、 char 。
require 'java'
class MyClass
public def initialize ( name )
@name = name
end
public void def main ( )
puts "This is the main method from #{ @name } "
return nil
end
public int def return
【文件预览】:
java-master
----.gitignore(159B)
----.travis.yml(71B)
----LICENSE(1KB)
----README.md(2KB)
----lib()
--------java.rb(1KB)
--------java()
----Gemfile(89B)
----java.gemspec(914B)
----Rakefile(212B)
----test()
--------java_test.rb(3KB)
--------test_helper.rb(189B)
----Gemfile.lock(205B)