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

Add with_print_calls method #52

Closed
st0012 opened this issue Jun 24, 2020 · 0 comments · Fixed by #56
Closed

Add with_print_calls method #52

st0012 opened this issue Jun 24, 2020 · 0 comments · Fixed by #56
Assignees
Milestone

Comments

@st0012
Copy link
Owner

st0012 commented Jun 24, 2020

Sometimes it's annoying to break a series of methods chain into several lines, just to call print_calls on an object. For example:

# we need to change this
SomeService.new(params).do_something

# into

s = SomeService.new(params)
print_calls(s)
s.do_something

For such cases, I'd like to add .with_print_calls method to the Object class. Then we can do

SomeService.new(params).with_print_calls.do_something
@st0012 st0012 added the Feature label Jun 24, 2020
@st0012 st0012 added this to the v0.5.4 milestone Jun 24, 2020
@st0012 st0012 self-assigned this Jun 24, 2020
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 a pull request may close this issue.

1 participant