Skip to content

v1.1.1

Compare
Choose a tag to compare
@flash-gordon flash-gordon released this 13 Oct 11:21
v1.1.1
e1fc3f0

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: 'john@acme.org')
    
    case user
    in User(name: 'John Doe', email:)
      puts email
    else
      puts 'Not John'
    end

    See more examples in the specs.

Compare v1.1.0...v1.1.1