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

Add container extension #2

Merged
merged 1 commit into from
Jul 3, 2019
Merged

Add container extension #2

merged 1 commit into from
Jul 3, 2019

Conversation

waiting-for-dev
Copy link
Owner

Adds a container setting to WebPipe::Conn configuration.

Besides the setting, a .container reader attribute is added to it.

This extension is meant to be a building block for other
extensions.

WebPipe.load_extensions(:container)

Container = {'foo' => 'bar'}.freeze

WebPipe.config.container = Container
WebPipe.container['foo'] # => 'bar'

Adds a `container` setting to `WebPipe::Conn` configuration.

Besides the setting, a `.container` reader attribute is added to it.

This extension is meant to be a building block for other
extensions.

```ruby
WebPipe.load_extensions(:container)

Container = {'foo' => 'bar'}.freeze

WebPipe.config.container = Container
WebPipe.container['foo'] # => 'bar'
```
@waiting-for-dev waiting-for-dev added the enhancement New feature or request label Jul 3, 2019
@waiting-for-dev waiting-for-dev merged commit 6d2eac2 into master Jul 3, 2019
@waiting-for-dev waiting-for-dev deleted the container branch July 3, 2019 06:32
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