Skip to content

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

License

Notifications You must be signed in to change notification settings

tenderlove/defrost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages