Hashie feature to allow immutable properties
hlascelles opened this issue · 2 comments
hlascelles commented
Would the Hashie community be open to a feature that would mark a Hashie::Dash
property (say) as immutable?
eg
class Person < Hashie::Dash
include Hashie::Extensions::Immutable
property :favourite_colour, immutable: false
property :birthday, immutable: true
end
hlascelles commented
And in just a few short minutes a change in our design has meant we can now work with fully frozen hashes. Nothing to see here.
dblock commented
If you think something here is valuable to hashie, PR please!