Project

defrost

0.02
The project is in a healthy, maintained state
Frozen objects: hard to use, can't mutate them, boring. Defrosted objects: exciting, dynamic, change any time!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 5.14
~> 13.0
 Project Readme

Defrost

Isn't it annoying when you try to mutate an object but it turns out the object is frozen? Don't you wish you could "defrost" the object so you could mutate it?

Well I have the gem for you!

Never "lose your cool" with the Defrost gem! The Defrost gem allows you to "unfreeze" your objects so that you can mutate them with reckless abandon! No longer will you need to grapple with "immutability" when you can simply just call "defrost".

Example

# Frozen string. Boring, hard to use, can't change it
str = "some string".freeze
p str.frozen? # => true

require "defrost"

# Not frozen string. Exciting, dynamic, no idea when it will change!
str.defrost
p str.frozen? # => false

Testimonials

"This is the most exciting thing to happen to my code since removing the GVL!" -- Aaron Patterson

"For a real treat, try mixing this gem with frozen string literals!" -- Aaron Patterson