Skip to content

v1.1.0

Compare
Choose a tag to compare
@flash-gordon flash-gordon released this 07 Oct 09:35
v1.1.0
66fb7cc

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.

Compare v1.0.0...v1.1.0