Defrost Save

Never let pesky "frozen" objects get in your way again! Use Defrost to remove the frozen state from your objects!

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

Open Source Agenda is not affiliated with "Defrost" Project. README Source: tenderlove/defrost
Stars
41
Open Issues
0
Last Commit
2 years ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating