Class: RubyXL::ActiveX

Inherits:
GenericStorageObject show all
Includes:
RelationshipSupport
Defined in:
lib/rubyXL/objects/storage.rb

Constant Summary collapse

REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/control'

Constants inherited from GenericStorageObject

GenericStorageObject::SAVE_ORDER

Instance Attribute Summary

Attributes included from RelationshipSupport

#generic_storage, #relationship_container

Attributes inherited from GenericStorageObject

#data, #generic_storage, #xlsx_path

Instance Method Summary collapse

Methods included from RelationshipSupport

#collect_related_objects, included, #load_relationships, #related_objects, #store_relationship

Methods inherited from GenericStorageObject

#add_to_zip, #initialize, parse_file

Constructor Details

This class inherits a constructor from RubyXL::GenericStorageObject

Instance Method Details

#attach_relationship(rid, rf) ⇒ Object



174
175
176
177
178
179
# File 'lib/rubyXL/objects/storage.rb', line 174

def attach_relationship(rid, rf)
  case rf
  when RubyXL::ChartFile       then store_relationship(rf) # TODO
  else store_relationship(rf, :unknown)
  end
end