Class: RubyXL::OOXMLRelationshipsFile
- Inherits:
-
OOXMLTopLevelObject
- Object
- OOXMLObject
- OOXMLTopLevelObject
- RubyXL::OOXMLRelationshipsFile
- Defined in:
- lib/rubyXL/objects/relationships.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from OOXMLTopLevelObject
#add_to_zip, parse_file, set_namespaces, xlsx_path, #xlsx_path
Methods included from OOXMLObjectClassMethods
#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse, #set_countable
Methods included from OOXMLObjectInstanceMethods
#before_write_xml, #dup, #index_in_collection, #initialize, #write_xml
Instance Method Details
#find_by_rid(r_id) ⇒ Object
35 36 37 |
# File 'lib/rubyXL/objects/relationships.rb', line 35 def find_by_rid(r_id) relationships.find { |r| r.id == r_id } end |
#find_by_target(target) ⇒ Object
39 40 41 |
# File 'lib/rubyXL/objects/relationships.rb', line 39 def find_by_target(target) relationships.find { |r| r.target == target } end |