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

Add with_* helpers (e.g. with_print_calls) #56

Merged
merged 2 commits into from
Jun 28, 2020
Merged

Add with_* helpers (e.g. with_print_calls) #56

merged 2 commits into from
Jun 28, 2020

Conversation

st0012
Copy link
Owner

@st0012 st0012 commented Jun 28, 2020

These helpers allow users to perform tracking without breaking chained
method calls.

# doing this
Service.new.with_print_calls(tapping_options).perform

# instead of this
service = Service.new
print_calls(service, tapping_options)
service.perform

This closes #52

These helpers allow users to perform tracking without breaking chained
method calls.

```ruby
Service.new.with_print_calls(tapping_options).perform

service = Service.new
print_calls(service, tapping_options)
service.perform
```
@st0012 st0012 added the Feature label Jun 28, 2020
@st0012 st0012 added this to the v0.5.4 milestone Jun 28, 2020
@st0012 st0012 self-assigned this Jun 28, 2020
@st0012 st0012 changed the title Add with_ACTION_SUBJECT helpers Add with_* helpers (e.g. with_print_calls) Jun 28, 2020
@st0012 st0012 merged commit b33d09d into master Jun 28, 2020
@st0012 st0012 deleted the with-heleprs branch June 28, 2020 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add with_print_calls method
1 participant