It is inspired at https://github.com/matz/streem
ほんとすいませんでした
It's joke gem.
Add this line to your application's Gemfile:
gem 'streeem'
And then execute:
$ bundle
Or install it yourself as:
$ gem install streeem
write example.rb
require 'streeem'
Streeem.do {|line|
x = line.to_i
if x % 15 == 0 then
"FizzBuzz"
elsif x % 3 == 0 then
"Fizz"
elsif x % 5 == 0 then
"Buzz"
else
x
end
}
seq 100 | ruby example.rb
- Fork it ( https://github.com/kyohsuke/streeem/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request