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

Change interface from .[] to .() for plugs #32

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Conversation

waiting-for-dev
Copy link
Owner

This follows the function abstraction for callable objects, as plugs are
just higher order functions which return another function (operation).

So, .[] method has been renamed to .() for the following plugs:

  • WebPipe::Plugs::Config
  • WebPipe::Plugs::ContentType
  • WebPipe::Plugs::SanitizeParams

This follows the function abstraction for callable objects, as plugs are
just higher order functions which return another function (operation).

So, `.[]` method has been renamed to `.()` for the following plugs:

- WebPipe::Plugs::Config
- WebPipe::Plugs::ContentType
- WebPipe::Plugs::SanitizeParams
@waiting-for-dev waiting-for-dev added the enhancement New feature or request label Aug 26, 2019
@waiting-for-dev waiting-for-dev merged commit f161eae into master Aug 26, 2019
@waiting-for-dev waiting-for-dev deleted the callable_plugs branch August 26, 2019 14:00
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.

1 participant