Module: WebPipe

Extended by:
Dry::Core::Extensions
Defined in:
lib/web_pipe.rb,
lib/web_pipe/app.rb,
lib/web_pipe/conn.rb,
lib/web_pipe/pipe.rb,
lib/web_pipe/plug.rb,
lib/web_pipe/plugs.rb,
lib/web_pipe/types.rb,
lib/web_pipe/version.rb,
lib/web_pipe/dsl/builder.rb,
lib/web_pipe/plugs/config.rb,
lib/web_pipe/test_support.rb,
lib/web_pipe/dsl/class_context.rb,
lib/web_pipe/conn_support/types.rb,
lib/web_pipe/extensions/url/url.rb,
lib/web_pipe/plugs/content_type.rb,
lib/web_pipe/conn_support/errors.rb,
lib/web_pipe/conn_support/builder.rb,
lib/web_pipe/conn_support/headers.rb,
lib/web_pipe/dsl/instance_context.rb,
lib/web_pipe/extensions/flash/flash.rb,
lib/web_pipe/extensions/rails/rails.rb,
lib/web_pipe/rack_support/middleware.rb,
lib/web_pipe/conn_support/composition.rb,
lib/web_pipe/extensions/params/params.rb,
lib/web_pipe/extensions/cookies/cookies.rb,
lib/web_pipe/extensions/session/session.rb,
lib/web_pipe/extensions/redirect/redirect.rb,
lib/web_pipe/extensions/container/container.rb,
lib/web_pipe/extensions/not_found/not_found.rb,
lib/web_pipe/extensions/params/params/transf.rb,
lib/web_pipe/extensions/dry_schema/dry_schema.rb,
lib/web_pipe/rack_support/app_with_middlewares.rb,
lib/web_pipe/extensions/hanami_view/hanami_view.rb,
lib/web_pipe/rack_support/middleware_specification.rb,
lib/web_pipe/extensions/router_params/router_params.rb,
lib/web_pipe/extensions/dry_schema/plugs/sanitize_params.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ConnSupport, Container, Cookies, DSL, DrySchema, DryView, Flash, NotFound, Params, Plugs, RackSupport, Rails, Redirect, RouterParams, Session, TestSupport, Types, Url Classes: App, Conn, Pipe, Plug

Constant Summary collapse

VERSION =
'0.16.0'

Class Method Summary collapse

Class Method Details

.call(**opts) ⇒ Object

Chained to Module#include to make the DSL available and provide options.

Plug.

Examples:

include WebPipe.call(container: Container)

Parameters:

  • container (#[])

    Container from where resolve operations. See



73
74
75
# File 'lib/web_pipe.rb', line 73

def self.call(**opts)
  DSL::Builder.new(**opts)
end

.included(klass) ⇒ Object

Called via Module#include, makes available web_pipe's DSL.

Includes an instance of Builder. That means that Builder#included is eventually called.



62
63
64
# File 'lib/web_pipe.rb', line 62

def self.included(klass)
  klass.include(call)
end