Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Micro::Case #apply as an alias for #method #71

Merged
merged 2 commits into from Aug 16, 2020

Conversation

mrbongiolo
Copy link
Contributor

@mrbongiolo mrbongiolo commented Aug 15, 2020

Following our discussion on the Telegram group chat, added #apply as an alias for #method when using a Case with private methods, like so:

def call!
  normalize_params
    .then(method(:do_something))
    .then(apply(:something_else))
end

@serradura serradura merged commit de1b6bf into serradura:main Aug 16, 2020
@serradura serradura added this to the 3.x milestone Aug 16, 2020
@serradura serradura added the enhancement New feature or request label Aug 16, 2020
MatheusRich pushed a commit to MatheusRich/u-case that referenced this pull request Oct 25, 2020
Added Micro::Case #apply as an alias for #method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants