2 ms·
Functional Options in Ruby
- weatherlight 6y agoI love FP, but this just looks messy. if you are afraid of the state changing, just marshal/dup whats passed inside. or used immutable options hash. https://www.rubydoc.info/github/immutable-ruby/immutable-ruby/Immutable/Hash https://www.rubydoc.info/github/immutable-ruby/immutable-rub...