v1.1.0
1.1.0 2019-10-07
Added
-
Experimental support for pattern matching 🎉 (flash-gordon)
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.