iron_oxide
An experiment that brings most of Rust's Result and Option patterns to Ruby.
Installation
gem install iron_oxideOr add the following line to your project's Gemfile:
gem "iron_oxide"Usage
require "iron_oxide"
include IronOxide::Aliases
Some(1).some?
None.some?
None.none?
Ok(1).ok?
Err("oh noes!").ok?Most of Result and Option has been ported to Ruby. You can
check tests
for examples.
Maintainer
Contributors
Contributing
For more details about how to contribute, please read https://github.com/fnando/iron_oxide/blob/main/CONTRIBUTING.md.
License
The gem is available as open source under the terms of the MIT License. A copy of the license can be found at https://github.com/fnando/iron_oxide/blob/main/LICENSE.md.
Code of Conduct
Everyone interacting in the iron_oxide project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.