Sha256: 58e8848582b8f2242d68ef4af061436c38a6842f4dfc59a9f113ec27b945d356
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
# frozen_string_literal: true require 'plumb/steppable' module Plumb class Step include Steppable attr_reader :_metadata def initialize(callable = nil, &block) @_metadata = callable.respond_to?(:metadata) ? callable.metadata : BLANK_HASH @callable = callable || block freeze end def call(result) @callable.call(result) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plumb-0.0.1 | lib/plumb/step.rb |