Sha256: 455a8c1d3d29dc3cbf30d292bf0e0952f8468d29a1040d4c7efcf94ad100e4b3

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

module Plumbing
  module Valve
    class Inline
      def initialize target
        @target = target
      end

      # Ask the target to answer the given message
      def ask(message, ...)
        @target.send(message, ...)
      end

      # Tell the target to execute the given message
      def tell(message, ...)
        @target.send(message, ...)
        nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
standard-procedure-plumbing-0.3.3 lib/plumbing/valve/inline.rb
standard-procedure-plumbing-0.3.2 lib/plumbing/valve/inline.rb
standard-procedure-plumbing-0.3.1 lib/plumbing/valve/inline.rb