Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujihisa/fibs
gem install fibs
https://github.com/ujihisa/fibs
Last synced: about 1 month ago
JSON representation
gem install fibs
- Host: GitHub
- URL: https://github.com/ujihisa/fibs
- Owner: ujihisa
- Created: 2011-11-12T07:42:06.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-12T07:43:03.000Z (about 13 years ago)
- Last Synced: 2024-05-01T23:19:25.256Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
As a command
$ fibs 10
1
1
2
3
5
8
13
21
34
55As a library
require 'fibs'
p Fibs.(10)
#=> [1, 1, 2, ..., 55]Or
require 'fibs'
p Fibs.new(1, 1).take(10)
#=> [1, 1, 2, ..., 55]Or
require 'fibs'
Fibs.new(1, 1).each do |x|
...
end