Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murodjon000/enumerables
This project is an attempt to clone the enumerable methods of the Ruby programming language.
https://github.com/murodjon000/enumerables
ruby
Last synced: about 1 month ago
JSON representation
This project is an attempt to clone the enumerable methods of the Ruby programming language.
- Host: GitHub
- URL: https://github.com/murodjon000/enumerables
- Owner: Murodjon000
- Created: 2020-12-26T15:16:40.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-07T14:46:52.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T19:10:12.129Z (about 1 month ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Enumerable Methods
> Project to re-build a few methods of Ruby Language.
Methods based on Enumerable module and Array class.
As described on documentation here [Enumerable](https://ruby-doc.org/core-2.7.0/Enumerable.html)
and [Array](https://ruby-doc.org/core-2.4.1/Array.html#method-i-each)
[Inject](https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?view=markup&pathrev=54162)## Content
* [Requirements](#requirements)
* [Built With](#built-with)
* [Live Demo](#live-demo)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)## Requirements
- .each (Only one from Array)
- .each_with_index
- .select (Filter like)
- .all?
- .any?
- .none?
- .count
- .map
- .inject (Reduce like)
Features
Re-make these methods and match with documentation expected behavior
- Create .multiply_els to test .inject
- Extends .map to accept procs
Additional features
Should multiply all the elements of array together
### Built With
- Ruby Language
- Git, Github and VScode
## Live Demo
[Run on Repl.it](https://repl.it/@Murodjon0103/myenumberables#main.rb)
## Quick Start
To get a local copy use:
```js
git clone https://github.com/Murodjon000/enumerables.git
```
## Author
👤 **Murodjon000**
- GitHub: [@Murodjon000](https://github.com/Murodjon000)
- Twitter: [@Murodjon](https://twitter.com/Murodjo91836152)
- LinkedIn: [murodjon-tursunpulatov](https://www.linkedin.com/in/murodjon-tursunpulatov-5189481b3/)
### Dependencies
Ruby 2.5.5
### Contributing
Contributions, issues and feature requests are welcome!
You can do it on [issues page](issues/).
## Acknowledgments
A special thanks for the code reviewers
### License
Creative Commons