【文件属性】:
文件名称:streeem:我真的很抱歉
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-07 12:40:49
Ruby
斯特里姆
它的灵感来自
ほんとすいませんでした
重要的
这是笑话宝石。
安装
将此行添加到应用程序的 Gemfile 中:
gem 'streeem'
然后执行:
$ bundle
或者自己安装:
$ gem install streeem
用法
写例子.rb
require 'streeem'
Streeem . do { | line |
x = line . to_i
if x == 0 then
"FizzBuzz"
elsif x % 3 == 0 then
"Fizz"
elsif x % 5 == 0 then
"Buzz"
else
x
end
}
seq 100 | ruby example.rb
贡献
分叉它( )
创建您的功能分支( git checkout -b my-new-
【文件预览】:
streeem-master
----.gitignore(118B)
----streeem.gemspec(977B)
----LICENSE.txt(1KB)
----README.md(855B)
----lib()
--------streeem()
--------streeem.rb(345B)
----Gemfile(92B)
----Rakefile(29B)