Gem-cruby is a gem for implementing some of ruby methods operated underground by C computation or cRuby. This is for nothing except of my curiosity.
- Show totalram
- Fibonacci sequence
- Quick sort
- Uppercase
- Uptime
- Loadavg
- INSTALLATION: gem install khanh
require "khanh"
Methods | Type | Description |
---|---|---|
uptime | string | show the time since the boosting point of time |
totalram | string | the total ram based on linux library sysinfo |
loadavg | string | average of tasks done in 1, 5 & 15 minutes |
10.bigFib | array | a Fibonacci sequence with length 10 (max 98) |
Khanh::CRuby.bigFib 10 | array | a Fibonacci sequence with length 10 (max over 100) |
"a1b2c".cUpcase | string | upper all the letters |
Khanh.sort([array]) | Array | quick-sort ascending an array |
👤 Khanh
- GitHub: khanh-devos
- Twitter: @khanhror
- LinkedIn: Khanh RoR
- Hash code
- Puma Server
- Multi-thread
- Active Record
- Action View
If you like this project give it a ⭐️