Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Update BCDD::Contract::Interface examples
Browse files Browse the repository at this point in the history
  • Loading branch information
serradura committed Jan 24, 2024
1 parent d0fcb31 commit f72121a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ Use `is_a?` to ensure that the class/object implements the expected methods.
```ruby
class User::Creation
def initialize(repository)
repository.is_a?(User::Repository) or raise ArgumentError, "repository must be a User::Repository"
repository => User::Repository

@repository = repository
end
Expand Down
2 changes: 1 addition & 1 deletion examples/ports_and_adapters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ end
module User
class Creation
def initialize(repository:)
repository.is_a?(Repository) or raise ArgumentError, "Expected a User::Repository, got #{repository}"
repository => Repository

@repository = repository
end
Expand Down
2 changes: 1 addition & 1 deletion examples/ports_and_adapters/lib/user/creation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module User
class Creation
def initialize(repository:)
repository.is_a?(Repository) or raise ArgumentError, "Expected a User::Repository, got #{repository}"
repository => Repository

@repository = repository
end
Expand Down

0 comments on commit f72121a

Please sign in to comment.