Skip to content

Commit

Permalink
Merge pull request hanami#413 from apohllo/patch-1
Browse files Browse the repository at this point in the history
fix some grammar errors
  • Loading branch information
davydovanton authored Nov 2, 2017
2 parents be744eb + 00ee106 commit 4e37e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/guides/1.1/architecture/interactors.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Instead, we recommend being **explicit over implicit**.
An Interactor is an object that represents a specific *use-case*.

They let each class have a single responsibility.
An Interactor's single responsibility is to combine object and method calls in order achieve a specific outcome.
An Interactor's single responsibility is to combine object and method calls in order to achieve a specific outcome.

We provide `Hanami::Interactor` as a module,
so you can start with a Plain Old Ruby Object,
Expand All @@ -81,12 +81,12 @@ This means objects are easy to reason about,
since there's only one possible method to call after the object is created.

By encapsulating behavior into a single object, it's easier to test.
It's also makes your codebase easier to understand,
It also makes your codebase easier to understand,
rather than leaving your complexity hidden, only expressed implicitly.

# Preparing
Let's say we have our `bookshelf` application,
from the [Getting Started]((/guides/getting-started)
from the [Getting Started](/guides/getting-started)
and we want to add the 'email notification for added book' feature.

# Creating Our Interactor
Expand Down

0 comments on commit 4e37e62

Please sign in to comment.