Project

iron_oxide

0.0
The project is in a healthy, maintained state
An experiment that brings some Rust patterns to Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

iron_oxide

Tests Gem Gem MIT License

An experiment that brings most of Rust's Result and Option patterns to Ruby.

Installation

gem install iron_oxide

Or 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.