Skip to content

Commit

Permalink
Update CHANGELOG [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Nov 2, 2017
1 parent d1556bc commit 05357c2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# v0.4.0 2017-11-02

### Added

* Added the `:type` option to class attributes, you can now restrict attribute values with a type. You can either use plain ruby types (`Integer`, `String`, etc) or `dry-types` (GustavoCaso)

```ruby
class Foo
extend Dry::Core::ClassAttributes

defines :ruby_attr, type: Integer
defines :dry_attr, type: Dry::Types['strict.int']
end
```

[Compare v0.3.4...v0.4.0](https://github.com/dry-rb/dry-core/compare/v0.3.4...v0.4.0)

# v0.3.4 2017-09-29

### Fixed
Expand Down

0 comments on commit 05357c2

Please sign in to comment.