Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add method to simplest the NoFreeze system by adding a class method #4
I really like to get the problem solved, but I do not like we are dynamically modifying global state. Also when this state is the class hierarchy of IceNine.
What about a factory that returns an IceNine / Adamantium module that behaves like we want?
module MyApp Immutable = Adamantium.build(:no_freeze => [...], :memoizer => :freeze, ...) class DomainEntity include Immutable end end