app/models/content_blob.rb
# returns an IO Object to the data content, or nil if the data file doesn't exist.
# In the case that there is a URL defined, but no local copy, the IO Object is still nil.
returns an IO Object to the data content, or nil if the data file doesn't exist.
In the case that there is a URL defined, but no local copy, the IO Object is still nil.
returns an IO Object to the data content or nil if the data file doesn ' t exist . In the case that there is a URL defined but no local copy the IO Object is still nil .
def data_io_object
    return @tmp_io_object unless @tmp_io_object.nil?
    return StringIO.new(@data) unless @data.nil?
    return File.open(filepath, 'rb') if file_exists?
    nil
  end
def data_io_object return @tmp_io_object unless @tmp_io_object . nil? return StringIO . new ( @data ) unless @data . nil? return File . open ( filepath , 'rb' ) if file_exists? nil end
returns an IO Object to the data content, or nil if the data file doesn't exist.
returns an IO Object to the data content or nil if the data file doesn ' t exist .