Sha256: b96290f4a08a449620c16f31675c63a3579be9976724e5456d1b913be87f7123
Contents?: true
Size: 390 Bytes
Versions: 22
Compression:
Stored size: 390 Bytes
Contents
module BBK module App module Middlewares class FromBlock < Base def initialize(&block) raise ArgumentError.new('Not passed block') unless block_given? @block = block end def build(app) @app = app self end def call(msg) @block.call(app, msg) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems