File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ layout: gem-single
44name : dry-types
55---
66
7- ### Using ` Dry::Types ` in Your Application
7+ ### Using dry-types in your application
88
991 . Make the base types available to your application by defining your own module built from ` Dry.Types() ` :
1010
@@ -19,7 +19,7 @@ name: dry-types
1919 # => #<Dry::Types::Constructor type=#<Dry::Types::Definition primitive=String options={}>>
2020 ` ` `
2121
22- # ## Creating Your First Type
22+ # ## Creating your first type
2323
24241 . Define a struct' s types by passing the name & type to the `attribute` method:
2525
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: dry-types
66
77Types themselves have optional attributes you can apply to get further functionality.
88
9- ### Append ` .optional ` to a _ Type _ to allow ` nil `
9+ ### Append ` .optional ` to a type to allow ` nil `
1010
1111By default, nil values raise an error:
1212
@@ -32,6 +32,6 @@ optional_string[123]
3232
3333` Types::String.optional ` is just syntactic sugar for ` Types::Strict::Nil | Types::Strict::String ` .
3434
35- ### Handle optional values using Monads
35+ ### Handle optional values using monads
3636
3737See [ Maybe] ( docs::extensions/maybe ) extension for another approach to handling optional values by returning a [ _ Monad_ ] ( /gems/dry-monads/ ) object.
You can’t perform that action at this time.
0 commit comments