Sha256: c82ea591642a36923761c9d5369543b96b19714845a29d3f07a9877313342d36

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

module WebTranslateIt

  module Safe

    class Pipe < Stream

      # process adds required commands to the current
      # shell command string
      # :active?, :pipe, :extension and :post_process are
      # defined in inheriting pipe classes
      def process
        return unless active?

        @backup.command << pipe
        @backup.extension << extension
        post_process
      end

    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
webtranslateit-safe-0.4.11 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.10 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.9 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.8 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.7 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.6 lib/web_translate_it/safe/pipe.rb
webtranslateit-safe-0.4.5 lib/webtranslateit/safe/pipe.rb
webtranslateit-safe-0.4.4 lib/webtranslateit/safe/pipe.rb
webtranslateit-safe-0.4.0 lib/webtranslateit/safe/pipe.rb