Class: Astrails::Safe::Pipe

Inherits:
Stream
  • Object
show all
Defined in:
lib/astrails/safe/pipe.rb

Direct Known Subclasses

Gpg, Gzip

Instance Method Summary collapse

Methods inherited from Stream

#compressed?, #config, #id, #initialize

Constructor Details

This class inherits a constructor from Astrails::Safe::Stream

Instance Method Details

#commandObject



5
6
7
# File 'lib/astrails/safe/pipe.rb', line 5

def command
  "#{@parent.command}#{pipe}"
end

#filenameObject



9
10
11
# File 'lib/astrails/safe/pipe.rb', line 9

def filename
  "#{@parent.filename}#{extension}"
end