Method: RubyXL::GenericStorageObject#add_to_zip

Defined in:
lib/rubyXL/objects/storage.rb

#add_to_zip(zip_stream) ⇒ Object

[View source]

17
18
19
20
21
22
# File 'lib/rubyXL/objects/storage.rb', line 17

def add_to_zip(zip_stream)
  return false if @data.nil?
  zip_stream.put_next_entry(RubyXL::from_root(self.xlsx_path))
  zip_stream.write(@data)
  true
end