Sha256: 79b4224ca1c996be75ca8b1fa2d3f7e7065182623ab6f5fb4cced94a14473e7d

Contents?: true

Size: 201 Bytes

Versions: 4

Compression:

Stored size: 201 Bytes

Contents

# frozen_string_literal: true

module Wayfarer
  module Middleware
    Lazy = Struct.new(:klass) do
      def call(task, &block)
        klass.new.call(task) { block.call }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wayfarer-0.4.7 lib/wayfarer/middleware/lazy.rb
wayfarer-0.4.6 lib/wayfarer/middleware/lazy.rb
wayfarer-0.4.5 lib/wayfarer/middleware/lazy.rb
wayfarer-0.4.4 lib/wayfarer/middleware/lazy.rb