dry-struct v1.1.0 Release Notes

Release Date: 2019-10-07 // about 2 years ago
  • 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 userin User({ name: 'John Doe', email: }) puts emailelseputs 'Not John'end
    

    See more examples in the specs.

    Compare v1.0.0...v1.1.0