https://github.com/sjdev2212/enum-ruby
https://github.com/sjdev2212/enum-ruby
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/sjdev2212/enum-ruby
- Owner: sjdev2212
- Created: 2022-01-27T21:33:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T14:51:59.000Z (over 4 years ago)
- Last Synced: 2025-02-22T11:25:30.710Z (over 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Enumerable
Class to manipulate a list of elementes using and external module.
## Build with
- Ruby
## Getting Started
You will need to have Ruby installed.
Clone this repo and enter the directory.
```bash
git clone https://github.com/Emmy-github-webdev/ruby-enumerable
cd ruby-enumerable
```
Run the Interactive Ruby Shell.
```bash
irb
```
Load the file.
```ruby
load './my_list.rb'
```
Test the methods.
```ruby
list = MyList.new(1, 2, 3, 4)
puts(list.all? { |e| e < 5 })
puts(list.all? { |e| e > 5 })
puts(list.any? { |e| e == 2 })
puts(list.any? { |e| e == 5 })
print(list.filter(&:even?))
## Authors
👤 **Anibal Amoroso**
- GitHub: [GitHub](https://github.com/sj1978).
- LinkedIn: [Linkedin](https://www.linkedin.com/in/anibalamoroso/).
👤 **Barnabas Mutinhiri**
- GitHub: [GitHub](https://github.com/mutinhiri).
- LinkedIn: [Linkedin](https://www.linkedin.com/in/bunbee/).
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/Emmy-github-webdev/ruby-enumerable/issues).
## Show your support
Give a ⭐️ if you like this project!