Sha256: edb28f7a61ca11c8ca1cf2535ecc03f436a8d445a45cc0d460cdbf87e9c03e37

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

module Linepipe
  class Step
    attr_reader :name

    def initialize(name=nil, &block)
      @name  = name
      @block = block
    end

    def apply(data)
      block.call(data)
    end

    private
    attr_reader :block
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
linepipe-0.1.2 lib/linepipe/step.rb
linepipe-0.1.1 lib/linepipe/step.rb
linepipe-0.1.0 lib/linepipe/step.rb