Class: Bulldog::Stream::ForFile
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#content_type, #initialize, #missing?, #reload, #size, #write_to
Constructor Details
This class inherits a constructor from Bulldog::Stream::Base
Instance Method Details
#file_name ⇒ Object
125 126 127 |
# File 'lib/bulldog/stream.rb', line 125 def file_name super || File.basename(@target.path) end |
#path ⇒ Object
120 121 122 123 |
# File 'lib/bulldog/stream.rb', line 120 def path @target.flush unless @target.closed? rescue IOError # not open for writing super end |