v1.1.1
1.1.1 2019-10-13
Changed
-
Pattern matching syntax is simplified with
deconstruct_keys
(k-tsj)User = Dry.Struct(name: 'string', email: 'string') user = User.new(name: 'John Doe', email: '[email protected]') case user in User(name: 'John Doe', email:) puts email else puts 'Not John' end
See more examples in the specs.