rubyXL 3.4.5 → 3.4.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +2 -1
  3. data/Gemfile +3 -3
  4. data/Gemfile.lock +76 -51
  5. data/LICENSE.txt +1 -1
  6. data/README.rdoc +10 -2
  7. data/Rakefile +3 -3
  8. data/VERSION +1 -1
  9. data/lib/rubyXL/convenience_methods/cell.rb +11 -1
  10. data/lib/rubyXL/convenience_methods/color.rb +5 -3
  11. data/lib/rubyXL/convenience_methods/worksheet.rb +77 -0
  12. data/lib/rubyXL/objects/chartsheet.rb +1 -1
  13. data/lib/rubyXL/objects/data_validation.rb +2 -0
  14. data/lib/rubyXL/objects/document_properties.rb +2 -2
  15. data/lib/rubyXL/objects/external_links.rb +25 -1
  16. data/lib/rubyXL/objects/ooxml_object.rb +13 -1
  17. data/lib/rubyXL/objects/relationships.rb +1 -1
  18. data/lib/rubyXL/objects/sheet_data.rb +11 -4
  19. data/lib/rubyXL/objects/storage.rb +1 -0
  20. data/lib/rubyXL/objects/text.rb +1 -1
  21. data/lib/rubyXL/objects/theme.rb +1 -1
  22. data/lib/rubyXL/objects/workbook.rb +24 -10
  23. data/lib/rubyXL/objects/worksheet.rb +7 -7
  24. data/lib/rubyXL/worksheet.rb +2 -0
  25. data/rdoc/README_rdoc.html +22 -10
  26. data/rdoc/RubyXL/AExtension.html +14 -51
  27. data/rdoc/RubyXL/AExtensionStorageArea.html +10 -14
  28. data/rdoc/RubyXL/ActiveX.html +16 -42
  29. data/rdoc/RubyXL/ActiveXBinary.html +10 -19
  30. data/rdoc/RubyXL/AdjustHandleList.html +10 -14
  31. data/rdoc/RubyXL/Alignment.html +10 -14
  32. data/rdoc/RubyXL/AlternateContent.html +10 -14
  33. data/rdoc/RubyXL/Authors.html +10 -14
  34. data/rdoc/RubyXL/AutoFilter.html +10 -14
  35. data/rdoc/RubyXL/AutoFilterColumn.html +10 -14
  36. data/rdoc/RubyXL/BinaryImageFile.html +10 -22
  37. data/rdoc/RubyXL/BodyProperties.html +10 -14
  38. data/rdoc/RubyXL/BooleanNode.html +10 -14
  39. data/rdoc/RubyXL/BooleanValue.html +10 -14
  40. data/rdoc/RubyXL/Border.html +13 -70
  41. data/rdoc/RubyXL/BorderEdge.html +13 -44
  42. data/rdoc/RubyXL/Borders.html +13 -31
  43. data/rdoc/RubyXL/Break.html +10 -14
  44. data/rdoc/RubyXL/BreakList.html +10 -14
  45. data/rdoc/RubyXL/CT_AdjPoint2D.html +10 -14
  46. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +10 -14
  47. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +10 -14
  48. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +10 -14
  49. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +10 -14
  50. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +10 -14
  51. data/rdoc/RubyXL/CT_Backdrop.html +10 -14
  52. data/rdoc/RubyXL/CT_Bevel.html +10 -14
  53. data/rdoc/RubyXL/CT_BiLevelEffect.html +10 -14
  54. data/rdoc/RubyXL/CT_BlendEffect.html +10 -14
  55. data/rdoc/RubyXL/CT_Blip.html +10 -14
  56. data/rdoc/RubyXL/CT_BlipFillProperties.html +10 -14
  57. data/rdoc/RubyXL/CT_BlurEffect.html +10 -14
  58. data/rdoc/RubyXL/CT_Camera.html +10 -14
  59. data/rdoc/RubyXL/CT_Color.html +10 -14
  60. data/rdoc/RubyXL/CT_ColorChangeEffect.html +10 -14
  61. data/rdoc/RubyXL/CT_ColorMapping.html +10 -14
  62. data/rdoc/RubyXL/CT_ColorScheme.html +10 -14
  63. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +10 -14
  64. data/rdoc/RubyXL/CT_ConnectionSite.html +10 -14
  65. data/rdoc/RubyXL/CT_ConnectionSiteList.html +10 -14
  66. data/rdoc/RubyXL/CT_DashStop.html +10 -14
  67. data/rdoc/RubyXL/CT_DashStopList.html +10 -14
  68. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +10 -14
  69. data/rdoc/RubyXL/CT_DuotoneEffect.html +10 -14
  70. data/rdoc/RubyXL/CT_EffectContainer.html +10 -14
  71. data/rdoc/RubyXL/CT_EffectList.html +10 -14
  72. data/rdoc/RubyXL/CT_EffectReference.html +10 -14
  73. data/rdoc/RubyXL/CT_EffectStyleItem.html +10 -14
  74. data/rdoc/RubyXL/CT_EffectStyleList.html +10 -14
  75. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +10 -14
  76. data/rdoc/RubyXL/CT_FillEffect.html +10 -14
  77. data/rdoc/RubyXL/CT_FillOverlayEffect.html +10 -14
  78. data/rdoc/RubyXL/CT_FillStyleList.html +10 -14
  79. data/rdoc/RubyXL/CT_FlatText.html +10 -14
  80. data/rdoc/RubyXL/CT_FontCollection.html +10 -14
  81. data/rdoc/RubyXL/CT_FontReference.html +10 -14
  82. data/rdoc/RubyXL/CT_GeomGuideList.html +10 -14
  83. data/rdoc/RubyXL/CT_GlowEffect.html +10 -14
  84. data/rdoc/RubyXL/CT_GradientFillProperties.html +10 -14
  85. data/rdoc/RubyXL/CT_GradientStop.html +10 -14
  86. data/rdoc/RubyXL/CT_GradientStopList.html +10 -14
  87. data/rdoc/RubyXL/CT_HSLEffect.html +10 -14
  88. data/rdoc/RubyXL/CT_HslColor.html +10 -14
  89. data/rdoc/RubyXL/CT_Hyperlink.html +10 -14
  90. data/rdoc/RubyXL/CT_InnerShadowEffect.html +10 -14
  91. data/rdoc/RubyXL/CT_LightRig.html +10 -14
  92. data/rdoc/RubyXL/CT_LineEndProperties.html +10 -14
  93. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +10 -14
  94. data/rdoc/RubyXL/CT_LineProperties.html +10 -14
  95. data/rdoc/RubyXL/CT_LineStyleList.html +10 -14
  96. data/rdoc/RubyXL/CT_LinearShadeProperties.html +10 -14
  97. data/rdoc/RubyXL/CT_LuminanceEffect.html +10 -14
  98. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +10 -14
  99. data/rdoc/RubyXL/CT_OuterShadowEffect.html +10 -14
  100. data/rdoc/RubyXL/CT_Path2D.html +10 -14
  101. data/rdoc/RubyXL/CT_Path2DArcTo.html +10 -14
  102. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +10 -14
  103. data/rdoc/RubyXL/CT_Path2DList.html +10 -14
  104. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +10 -14
  105. data/rdoc/RubyXL/CT_Path2DTo.html +10 -14
  106. data/rdoc/RubyXL/CT_PathShadeProperties.html +10 -14
  107. data/rdoc/RubyXL/CT_PatternFillProperties.html +10 -14
  108. data/rdoc/RubyXL/CT_Point3D.html +10 -14
  109. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +10 -14
  110. data/rdoc/RubyXL/CT_PresetColor.html +10 -14
  111. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +10 -14
  112. data/rdoc/RubyXL/CT_PresetShadowEffect.html +10 -14
  113. data/rdoc/RubyXL/CT_PresetTextShape.html +10 -14
  114. data/rdoc/RubyXL/CT_ReflectionEffect.html +10 -14
  115. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +10 -14
  116. data/rdoc/RubyXL/CT_RelativeRect.html +10 -14
  117. data/rdoc/RubyXL/CT_SRgbColor.html +10 -14
  118. data/rdoc/RubyXL/CT_ScRgbColor.html +10 -14
  119. data/rdoc/RubyXL/CT_Scene3D.html +10 -14
  120. data/rdoc/RubyXL/CT_SchemeColor.html +10 -14
  121. data/rdoc/RubyXL/CT_Shape3D.html +10 -14
  122. data/rdoc/RubyXL/CT_ShapeStyle.html +10 -14
  123. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +10 -14
  124. data/rdoc/RubyXL/CT_SphereCoords.html +10 -14
  125. data/rdoc/RubyXL/CT_StretchInfoProperties.html +10 -14
  126. data/rdoc/RubyXL/CT_StyleMatrix.html +10 -14
  127. data/rdoc/RubyXL/CT_StyleMatrixReference.html +10 -14
  128. data/rdoc/RubyXL/CT_SupplementalFont.html +10 -14
  129. data/rdoc/RubyXL/CT_SystemColor.html +10 -14
  130. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +10 -14
  131. data/rdoc/RubyXL/CT_TextBlipBullet.html +10 -14
  132. data/rdoc/RubyXL/CT_TextCharBullet.html +10 -14
  133. data/rdoc/RubyXL/CT_TextCharacterProperties.html +10 -14
  134. data/rdoc/RubyXL/CT_TextFont.html +10 -14
  135. data/rdoc/RubyXL/CT_TextListStyle.html +10 -14
  136. data/rdoc/RubyXL/CT_TextNormalAutofit.html +10 -14
  137. data/rdoc/RubyXL/CT_TextParagraphProperties.html +10 -14
  138. data/rdoc/RubyXL/CT_TextSpacing.html +10 -14
  139. data/rdoc/RubyXL/CT_TextTabStop.html +10 -14
  140. data/rdoc/RubyXL/CT_TextTabStopList.html +10 -14
  141. data/rdoc/RubyXL/CT_TileInfoProperties.html +10 -14
  142. data/rdoc/RubyXL/CT_TintEffect.html +10 -14
  143. data/rdoc/RubyXL/CT_Transform2D.html +10 -14
  144. data/rdoc/RubyXL/CT_TransformEffect.html +10 -14
  145. data/rdoc/RubyXL/CT_Vector3D.html +10 -14
  146. data/rdoc/RubyXL/CT_XYAdjustHandle.html +10 -14
  147. data/rdoc/RubyXL/CalculationChain.html +13 -39
  148. data/rdoc/RubyXL/CalculationChainCell.html +10 -14
  149. data/rdoc/RubyXL/CalculationProperties.html +10 -14
  150. data/rdoc/RubyXL/Cell.html +28 -221
  151. data/rdoc/RubyXL/CellConvenienceMethods.html +70 -475
  152. data/rdoc/RubyXL/CellExt.html +10 -14
  153. data/rdoc/RubyXL/CellSmartTag.html +10 -14
  154. data/rdoc/RubyXL/CellSmartTagProperty.html +10 -14
  155. data/rdoc/RubyXL/CellSmartTags.html +10 -14
  156. data/rdoc/RubyXL/CellStyle.html +10 -14
  157. data/rdoc/RubyXL/CellStyleXFs.html +13 -31
  158. data/rdoc/RubyXL/CellStyles.html +13 -31
  159. data/rdoc/RubyXL/CellValue.html +13 -31
  160. data/rdoc/RubyXL/CellWatch.html +10 -14
  161. data/rdoc/RubyXL/CellWatches.html +10 -14
  162. data/rdoc/RubyXL/CellXFs.html +13 -31
  163. data/rdoc/RubyXL/ChartColorsFile.html +10 -22
  164. data/rdoc/RubyXL/ChartFile.html +15 -44
  165. data/rdoc/RubyXL/ChartStyleFile.html +10 -22
  166. data/rdoc/RubyXL/ChartUserShapesFile.html +10 -22
  167. data/rdoc/RubyXL/Chartsheet.html +15 -61
  168. data/rdoc/RubyXL/ChartsheetPageSetup.html +10 -14
  169. data/rdoc/RubyXL/ChartsheetProperties.html +10 -14
  170. data/rdoc/RubyXL/ChartsheetProtection.html +10 -14
  171. data/rdoc/RubyXL/ChartsheetView.html +10 -14
  172. data/rdoc/RubyXL/ChartsheetViews.html +10 -14
  173. data/rdoc/RubyXL/Color.html +13 -36
  174. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +15 -60
  175. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +19 -76
  176. data/rdoc/RubyXL/ColorConvenienceClasses.html +8 -11
  177. data/rdoc/RubyXL/ColorConvenienceMethods.html +11 -28
  178. data/rdoc/RubyXL/ColorFilter.html +10 -14
  179. data/rdoc/RubyXL/ColorScale.html +10 -14
  180. data/rdoc/RubyXL/ColorSet.html +10 -14
  181. data/rdoc/RubyXL/Colors.html +10 -14
  182. data/rdoc/RubyXL/ColumnRange.html +13 -62
  183. data/rdoc/RubyXL/ColumnRanges.html +13 -70
  184. data/rdoc/RubyXL/Comment.html +10 -14
  185. data/rdoc/RubyXL/CommentList.html +10 -14
  186. data/rdoc/RubyXL/CommentsFile.html +13 -44
  187. data/rdoc/RubyXL/ConditionalFormatValue.html +10 -14
  188. data/rdoc/RubyXL/ConditionalFormatting.html +10 -14
  189. data/rdoc/RubyXL/ConditionalFormattingRule.html +10 -14
  190. data/rdoc/RubyXL/Connection.html +10 -14
  191. data/rdoc/RubyXL/ConnectionTable.html +10 -14
  192. data/rdoc/RubyXL/ConnectionTables.html +10 -14
  193. data/rdoc/RubyXL/ConnectionTextField.html +10 -14
  194. data/rdoc/RubyXL/ConnectionTextFields.html +10 -14
  195. data/rdoc/RubyXL/Connections.html +13 -39
  196. data/rdoc/RubyXL/ContentTypeDefault.html +10 -14
  197. data/rdoc/RubyXL/ContentTypeOverride.html +10 -14
  198. data/rdoc/RubyXL/ContentTypes.html +13 -52
  199. data/rdoc/RubyXL/ControlPropertiesFile.html +12 -19
  200. data/rdoc/RubyXL/CorePropertiesFile.html +15 -150
  201. data/rdoc/RubyXL/CustomColor.html +10 -14
  202. data/rdoc/RubyXL/CustomColorList.html +10 -14
  203. data/rdoc/RubyXL/CustomFilter.html +10 -14
  204. data/rdoc/RubyXL/CustomFilters.html +10 -14
  205. data/rdoc/RubyXL/CustomGeometry.html +10 -14
  206. data/rdoc/RubyXL/CustomProperties.html +10 -14
  207. data/rdoc/RubyXL/CustomPropertiesFile.html +10 -22
  208. data/rdoc/RubyXL/CustomProperty.html +10 -14
  209. data/rdoc/RubyXL/CustomPropertyFile.html +10 -22
  210. data/rdoc/RubyXL/CustomSheetView.html +10 -14
  211. data/rdoc/RubyXL/CustomSheetViews.html +10 -14
  212. data/rdoc/RubyXL/CustomWorkbookView.html +10 -14
  213. data/rdoc/RubyXL/CustomWorkbookViews.html +10 -14
  214. data/rdoc/RubyXL/CustomXMLFile.html +10 -19
  215. data/rdoc/RubyXL/DXF.html +10 -14
  216. data/rdoc/RubyXL/DXFs.html +10 -14
  217. data/rdoc/RubyXL/DataBar.html +10 -14
  218. data/rdoc/RubyXL/DataConsolidate.html +10 -14
  219. data/rdoc/RubyXL/DataConsolidationReference.html +10 -14
  220. data/rdoc/RubyXL/DataConsolidationReferences.html +10 -14
  221. data/rdoc/RubyXL/DataType.html +8 -34
  222. data/rdoc/RubyXL/DataValidation.html +10 -14
  223. data/rdoc/RubyXL/DataValidations.html +10 -14
  224. data/rdoc/RubyXL/DateGroupItem.html +10 -14
  225. data/rdoc/RubyXL/DefinedName.html +10 -14
  226. data/rdoc/RubyXL/DefinedNameExt.html +10 -14
  227. data/rdoc/RubyXL/DefinedNames.html +10 -14
  228. data/rdoc/RubyXL/DefinedNamesExt.html +10 -14
  229. data/rdoc/RubyXL/DocumentPropertiesFile.html +13 -57
  230. data/rdoc/RubyXL/DrawingFile.html +15 -44
  231. data/rdoc/RubyXL/DynamicFilter.html +10 -14
  232. data/rdoc/RubyXL/EmbeddedControl.html +10 -14
  233. data/rdoc/RubyXL/EmbeddedControls.html +10 -14
  234. data/rdoc/RubyXL/Extension.html +10 -14
  235. data/rdoc/RubyXL/ExtensionStorageArea.html +10 -14
  236. data/rdoc/RubyXL/Extents.html +10 -14
  237. data/rdoc/RubyXL/ExternalBook.html +10 -14
  238. data/rdoc/RubyXL/ExternalLinksFile.html +16 -45
  239. data/rdoc/RubyXL/ExternalReference.html +10 -14
  240. data/rdoc/RubyXL/ExternalReferences.html +10 -14
  241. data/rdoc/RubyXL/ExtraColorSchemeList.html +10 -14
  242. data/rdoc/RubyXL/FieldItem.html +10 -14
  243. data/rdoc/RubyXL/FileRecoveryProperties.html +10 -14
  244. data/rdoc/RubyXL/FileSharing.html +10 -14
  245. data/rdoc/RubyXL/FileVersion.html +10 -14
  246. data/rdoc/RubyXL/Fill.html +13 -31
  247. data/rdoc/RubyXL/Fills.html +13 -31
  248. data/rdoc/RubyXL/FilterContainer.html +10 -14
  249. data/rdoc/RubyXL/FloatNode.html +10 -14
  250. data/rdoc/RubyXL/FloatValue.html +10 -14
  251. data/rdoc/RubyXL/Font.html +13 -36
  252. data/rdoc/RubyXL/FontConvenienceMethods.html +11 -197
  253. data/rdoc/RubyXL/FontScheme.html +10 -14
  254. data/rdoc/RubyXL/Fonts.html +13 -31
  255. data/rdoc/RubyXL/Formula.html +10 -14
  256. data/rdoc/RubyXL/FunctionGroup.html +10 -14
  257. data/rdoc/RubyXL/FunctionGroups.html +10 -14
  258. data/rdoc/RubyXL/GenericStorageObject.html +14 -75
  259. data/rdoc/RubyXL/GradientFill.html +10 -14
  260. data/rdoc/RubyXL/HeaderFooterSettings.html +10 -14
  261. data/rdoc/RubyXL/Hyperlink.html +10 -14
  262. data/rdoc/RubyXL/HyperlinkRelFile.html +10 -19
  263. data/rdoc/RubyXL/Hyperlinks.html +10 -14
  264. data/rdoc/RubyXL/IconFilter.html +10 -14
  265. data/rdoc/RubyXL/IconSet.html +10 -14
  266. data/rdoc/RubyXL/IgnoredError.html +10 -14
  267. data/rdoc/RubyXL/IgnoredErrors.html +10 -14
  268. data/rdoc/RubyXL/IndexedColors.html +10 -14
  269. data/rdoc/RubyXL/InputCells.html +10 -14
  270. data/rdoc/RubyXL/IntegerNode.html +10 -14
  271. data/rdoc/RubyXL/IntegerValue.html +10 -14
  272. data/rdoc/RubyXL/LegacyCell.html +11 -28
  273. data/rdoc/RubyXL/LegacyWorksheet.html +16 -88
  274. data/rdoc/RubyXL/MRUColors.html +10 -14
  275. data/rdoc/RubyXL/MacrosFile.html +10 -22
  276. data/rdoc/RubyXL/MergedCell.html +10 -14
  277. data/rdoc/RubyXL/MergedCells.html +10 -14
  278. data/rdoc/RubyXL/NumFmt.html +10 -14
  279. data/rdoc/RubyXL/NumberFormat.html +13 -31
  280. data/rdoc/RubyXL/NumberFormats.html +13 -36
  281. data/rdoc/RubyXL/OLEObject.html +10 -14
  282. data/rdoc/RubyXL/OLEObjectFile.html +10 -22
  283. data/rdoc/RubyXL/OLEObjects.html +10 -14
  284. data/rdoc/RubyXL/OLESize.html +10 -14
  285. data/rdoc/RubyXL/OOXMLContainerObject.html +24 -116
  286. data/rdoc/RubyXL/OOXMLIgnored.html +14 -46
  287. data/rdoc/RubyXL/OOXMLObject.html +12 -19
  288. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +39 -84
  289. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +28 -141
  290. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +15 -169
  291. data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -103
  292. data/rdoc/RubyXL/OdbcOleDbProperties.html +10 -14
  293. data/rdoc/RubyXL/Offset.html +10 -14
  294. data/rdoc/RubyXL/OlapProperties.html +10 -14
  295. data/rdoc/RubyXL/OleItem.html +99 -0
  296. data/rdoc/RubyXL/OleItems.html +99 -0
  297. data/rdoc/RubyXL/OleLink.html +99 -0
  298. data/rdoc/RubyXL/OutlineProperties.html +10 -14
  299. data/rdoc/RubyXL/PageMargins.html +10 -14
  300. data/rdoc/RubyXL/PageSetup.html +10 -14
  301. data/rdoc/RubyXL/PageSetupProperties.html +10 -14
  302. data/rdoc/RubyXL/Pane.html +10 -14
  303. data/rdoc/RubyXL/Parser.html +13 -44
  304. data/rdoc/RubyXL/PatternFill.html +10 -14
  305. data/rdoc/RubyXL/PhoneticProperties.html +10 -14
  306. data/rdoc/RubyXL/PhoneticRun.html +10 -14
  307. data/rdoc/RubyXL/PivotArea.html +10 -14
  308. data/rdoc/RubyXL/PivotCache.html +10 -14
  309. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +12 -27
  310. data/rdoc/RubyXL/PivotCacheRecordsFile.html +10 -22
  311. data/rdoc/RubyXL/PivotCaches.html +10 -14
  312. data/rdoc/RubyXL/PivotReference.html +10 -14
  313. data/rdoc/RubyXL/PivotReferences.html +10 -14
  314. data/rdoc/RubyXL/PivotTableFile.html +12 -27
  315. data/rdoc/RubyXL/PivotTableSelection.html +10 -14
  316. data/rdoc/RubyXL/PresetGeometry.html +10 -14
  317. data/rdoc/RubyXL/PrintOptions.html +10 -14
  318. data/rdoc/RubyXL/PrinterSettingsFile.html +10 -22
  319. data/rdoc/RubyXL/ProtectedRange.html +10 -14
  320. data/rdoc/RubyXL/ProtectedRanges.html +10 -14
  321. data/rdoc/RubyXL/Protection.html +10 -14
  322. data/rdoc/RubyXL/QueryParameter.html +10 -14
  323. data/rdoc/RubyXL/QueryParameters.html +10 -14
  324. data/rdoc/RubyXL/QueryTable.html +15 -44
  325. data/rdoc/RubyXL/QueryTableDeletedField.html +10 -14
  326. data/rdoc/RubyXL/QueryTableDeletedFields.html +10 -14
  327. data/rdoc/RubyXL/QueryTableField.html +10 -14
  328. data/rdoc/RubyXL/QueryTableFields.html +10 -14
  329. data/rdoc/RubyXL/QueryTableRefresh.html +10 -14
  330. data/rdoc/RubyXL/RID.html +10 -14
  331. data/rdoc/RubyXL/RawOOXML.html +14 -51
  332. data/rdoc/RubyXL/Reference.html +14 -192
  333. data/rdoc/RubyXL/Relationship.html +10 -14
  334. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +11 -28
  335. data/rdoc/RubyXL/RelationshipSupport.html +14 -108
  336. data/rdoc/RubyXL/RevisionPointer.html +10 -14
  337. data/rdoc/RubyXL/RichText.html +14 -32
  338. data/rdoc/RubyXL/RichTextRun.html +13 -31
  339. data/rdoc/RubyXL/Row.html +22 -154
  340. data/rdoc/RubyXL/RowExt.html +10 -14
  341. data/rdoc/RubyXL/RunProperties.html +10 -14
  342. data/rdoc/RubyXL/Scenario.html +10 -14
  343. data/rdoc/RubyXL/Scenarios.html +10 -14
  344. data/rdoc/RubyXL/Selection.html +13 -31
  345. data/rdoc/RubyXL/ShapeGuide.html +10 -14
  346. data/rdoc/RubyXL/ShapeTextRectangle.html +10 -14
  347. data/rdoc/RubyXL/SharedStringsTable.html +14 -121
  348. data/rdoc/RubyXL/Sheet.html +10 -14
  349. data/rdoc/RubyXL/SheetCalculationProperties.html +10 -14
  350. data/rdoc/RubyXL/SheetData.html +15 -46
  351. data/rdoc/RubyXL/SheetDataExt.html +10 -14
  352. data/rdoc/RubyXL/SheetDataSet.html +10 -14
  353. data/rdoc/RubyXL/SheetName.html +10 -14
  354. data/rdoc/RubyXL/SheetNames.html +10 -14
  355. data/rdoc/RubyXL/Sheets.html +10 -14
  356. data/rdoc/RubyXL/SlicerCacheFile.html +10 -22
  357. data/rdoc/RubyXL/SlicerFile.html +10 -22
  358. data/rdoc/RubyXL/SmartTagProperties.html +10 -14
  359. data/rdoc/RubyXL/SmartTagType.html +10 -14
  360. data/rdoc/RubyXL/SmartTagTypes.html +10 -14
  361. data/rdoc/RubyXL/SmartTags.html +10 -14
  362. data/rdoc/RubyXL/SortCondition.html +10 -14
  363. data/rdoc/RubyXL/SortState.html +10 -14
  364. data/rdoc/RubyXL/Sqref.html +14 -46
  365. data/rdoc/RubyXL/Stop.html +10 -14
  366. data/rdoc/RubyXL/StringNode.html +10 -14
  367. data/rdoc/RubyXL/StringNodeW3C.html +14 -46
  368. data/rdoc/RubyXL/StringValue.html +10 -14
  369. data/rdoc/RubyXL/Stylesheet.html +14 -94
  370. data/rdoc/RubyXL/TableFile.html +10 -22
  371. data/rdoc/RubyXL/TableParts.html +10 -14
  372. data/rdoc/RubyXL/TableStyle.html +10 -14
  373. data/rdoc/RubyXL/TableStyles.html +10 -14
  374. data/rdoc/RubyXL/Text.html +13 -52
  375. data/rdoc/RubyXL/TextImportSettings.html +10 -14
  376. data/rdoc/RubyXL/Theme.html +14 -67
  377. data/rdoc/RubyXL/ThemeElements.html +10 -14
  378. data/rdoc/RubyXL/ThumbnailFile.html +10 -22
  379. data/rdoc/RubyXL/Top10.html +10 -14
  380. data/rdoc/RubyXL/VMLDrawingFile.html +12 -27
  381. data/rdoc/RubyXL/Variant.html +10 -14
  382. data/rdoc/RubyXL/Vector.html +13 -31
  383. data/rdoc/RubyXL/VectorValue.html +10 -14
  384. data/rdoc/RubyXL/VisualProperties.html +10 -14
  385. data/rdoc/RubyXL/WebPublishObject.html +10 -14
  386. data/rdoc/RubyXL/WebPublishObjects.html +10 -14
  387. data/rdoc/RubyXL/WebPublishingItem.html +10 -14
  388. data/rdoc/RubyXL/WebPublishingItems.html +10 -14
  389. data/rdoc/RubyXL/WebPublishingProperties.html +10 -14
  390. data/rdoc/RubyXL/WebQueryProperties.html +10 -14
  391. data/rdoc/RubyXL/Workbook.html +76 -465
  392. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +11 -223
  393. data/rdoc/RubyXL/WorkbookProperties.html +10 -14
  394. data/rdoc/RubyXL/WorkbookProtection.html +10 -14
  395. data/rdoc/RubyXL/WorkbookRoot.html +16 -101
  396. data/rdoc/RubyXL/WorkbookView.html +10 -14
  397. data/rdoc/RubyXL/WorkbookViews.html +10 -14
  398. data/rdoc/RubyXL/Worksheet.html +16 -132
  399. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +171 -987
  400. data/rdoc/RubyXL/WorksheetDimensions.html +10 -14
  401. data/rdoc/RubyXL/WorksheetFormatProperties.html +10 -14
  402. data/rdoc/RubyXL/WorksheetProperties.html +10 -14
  403. data/rdoc/RubyXL/WorksheetProtection.html +10 -14
  404. data/rdoc/RubyXL/WorksheetView.html +10 -14
  405. data/rdoc/RubyXL/WorksheetViews.html +10 -14
  406. data/rdoc/RubyXL/XF.html +10 -14
  407. data/rdoc/RubyXL.html +11 -321
  408. data/rdoc/created.rid +26 -26
  409. data/rdoc/css/rdoc.css +55 -6
  410. data/rdoc/index.html +13 -390
  411. data/rdoc/js/darkfish.js +22 -99
  412. data/rdoc/js/navigation.js +4 -40
  413. data/rdoc/js/navigation.js.gz +0 -0
  414. data/rdoc/js/search.js +32 -31
  415. data/rdoc/js/search_index.js +1 -1
  416. data/rdoc/js/search_index.js.gz +0 -0
  417. data/rdoc/js/searcher.js +6 -6
  418. data/rdoc/js/searcher.js.gz +0 -0
  419. data/rdoc/table_of_contents.html +33 -7
  420. data/rubyXL.gemspec +24 -31
  421. data/spec/lib/cell_spec.rb +44 -2
  422. data/spec/lib/rgb_color_spec.rb +16 -0
  423. data/spec/lib/worksheet_spec.rb +301 -0
  424. metadata +12 -10
  425. data/rdoc/js/jquery.js +0 -4
@@ -4,21 +4,23 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::OOXMLIgnored - rubyXL 3.4.5</title>
7
+ <title>class RubyXL::OOXMLIgnored - rubyXL 3.4.18</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
11
11
  var index_rel_prefix = "../";
12
12
  </script>
13
13
 
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
16
19
 
17
20
  <link href="../css/fonts.css" rel="stylesheet">
18
21
  <link href="../css/rdoc.css" rel="stylesheet">
19
22
 
20
23
 
21
-
22
24
  <body id="top" role="document" class="class">
23
25
  <nav role="navigation">
24
26
  <div id="project-navigation">
@@ -55,26 +57,23 @@
55
57
 
56
58
  <div id="class-metadata">
57
59
 
58
- <div id="parent-class-section" class="nav-section">
60
+
61
+ <div id="parent-class-section" class="nav-section">
59
62
  <h3>Parent</h3>
60
63
 
61
-
62
64
  <p class="link">OOXMLObject
63
-
64
65
  </div>
65
66
 
66
67
 
67
68
 
68
- <!-- Method Quickref -->
69
+
70
+ <!-- Method Quickref -->
69
71
  <div id="method-list-section" class="nav-section">
70
72
  <h3>Methods</h3>
71
73
 
72
74
  <ul class="link-list" role="directory">
73
-
74
75
  <li ><a href="#method-c-parse">::parse</a>
75
-
76
76
  <li ><a href="#method-i-write_xml">#write_xml</a>
77
-
78
77
  </ul>
79
78
  </div>
80
79
 
@@ -90,106 +89,75 @@
90
89
 
91
90
  </section>
92
91
 
93
-
94
92
  <section id="5Buntitled-5D" class="documentation-section">
95
-
96
93
 
97
-
98
94
 
99
-
100
95
 
101
-
102
96
 
103
-
97
+
104
98
  <section id="public-class-5Buntitled-5D-method-details" class="method-section">
105
99
  <header>
106
100
  <h3>Public Class Methods</h3>
107
101
  </header>
108
102
 
109
-
110
103
  <div id="method-c-parse" class="method-detail ">
111
-
112
104
  <div class="method-heading">
113
105
  <span class="method-name">parse</span><span
114
106
  class="method-args">(node, ignore)</span>
115
-
116
107
  <span class="method-click-advice">click to toggle source</span>
117
-
118
108
  </div>
119
-
120
109
 
121
110
  <div class="method-description">
122
111
 
123
-
124
-
125
-
126
112
 
127
-
128
113
  <div class="method-source-code" id="parse-source">
129
114
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/extensions.rb, line 37</span>
130
115
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">ignore</span>)
131
116
  <span class="ruby-keyword">nil</span>
132
117
  <span class="ruby-keyword">end</span></pre>
133
118
  </div>
134
-
135
119
  </div>
136
120
 
137
-
138
121
 
139
-
140
122
  </div>
141
123
 
142
-
143
124
  </section>
144
-
125
+
145
126
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
146
127
  <header>
147
128
  <h3>Public Instance Methods</h3>
148
129
  </header>
149
130
 
150
-
151
131
  <div id="method-i-write_xml" class="method-detail ">
152
-
153
132
  <div class="method-heading">
154
133
  <span class="method-name">write_xml</span><span
155
134
  class="method-args">(xml, node_name_override = nil)</span>
156
-
157
135
  <span class="method-click-advice">click to toggle source</span>
158
-
159
136
  </div>
160
-
161
137
 
162
138
  <div class="method-description">
163
139
 
164
-
165
-
166
-
167
140
 
168
-
169
141
  <div class="method-source-code" id="write_xml-source">
170
142
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/extensions.rb, line 41</span>
171
143
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">write_xml</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">node_name_override</span> = <span class="ruby-keyword">nil</span>)
172
144
  <span class="ruby-string">&#39;&#39;</span>
173
145
  <span class="ruby-keyword">end</span></pre>
174
146
  </div>
175
-
176
147
  </div>
177
148
 
178
-
179
149
 
180
-
181
150
  </div>
182
151
 
183
-
184
152
  </section>
185
-
153
+
186
154
  </section>
187
155
  </main>
188
156
 
189
157
 
190
158
  <footer id="validator-badges" role="contentinfo">
191
159
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
192
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
160
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
193
161
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
194
162
  </footer>
195
163
 
@@ -4,21 +4,23 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::OOXMLObject - rubyXL 3.4.5</title>
7
+ <title>class RubyXL::OOXMLObject - rubyXL 3.4.18</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
11
11
  var index_rel_prefix = "../";
12
12
  </script>
13
13
 
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
16
19
 
17
20
  <link href="../css/fonts.css" rel="stylesheet">
18
21
  <link href="../css/rdoc.css" rel="stylesheet">
19
22
 
20
23
 
21
-
22
24
  <body id="top" role="document" class="class">
23
25
  <nav role="navigation">
24
26
  <div id="project-navigation">
@@ -55,23 +57,19 @@
55
57
 
56
58
  <div id="class-metadata">
57
59
 
58
- <div id="parent-class-section" class="nav-section">
60
+
61
+ <div id="parent-class-section" class="nav-section">
59
62
  <h3>Parent</h3>
60
63
 
61
-
62
64
  <p class="link">Object
63
-
64
65
  </div>
65
66
 
66
- <div id="includes-section" class="nav-section">
67
+
68
+ <div id="includes-section" class="nav-section">
67
69
  <h3>Included Modules</h3>
68
70
 
69
71
  <ul class="link-list">
70
-
71
-
72
72
  <li><a class="include" href="OOXMLObjectInstanceMethods.html">RubyXL::OOXMLObjectInstanceMethods</a>
73
-
74
-
75
73
  </ul>
76
74
  </div>
77
75
 
@@ -91,24 +89,19 @@
91
89
 
92
90
  </section>
93
91
 
94
-
95
92
  <section id="5Buntitled-5D" class="documentation-section">
96
-
97
93
 
98
-
99
94
 
100
-
101
95
 
102
-
103
96
 
104
-
97
+
105
98
  </section>
106
99
  </main>
107
100
 
108
101
 
109
102
  <footer id="validator-badges" role="contentinfo">
110
103
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
111
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
104
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
112
105
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
113
106
  </footer>
114
107
 
@@ -4,21 +4,23 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.5</title>
7
+ <title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.18</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
11
11
  var index_rel_prefix = "../";
12
12
  </script>
13
13
 
14
- <script src="../js/jquery.js"></script>
15
- <script src="../js/darkfish.js"></script>
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
16
19
 
17
20
  <link href="../css/fonts.css" rel="stylesheet">
18
21
  <link href="../css/rdoc.css" rel="stylesheet">
19
22
 
20
23
 
21
-
22
24
  <body id="top" role="document" class="module">
23
25
  <nav role="navigation">
24
26
  <div id="project-navigation">
@@ -58,22 +60,18 @@
58
60
 
59
61
 
60
62
 
61
- <!-- Method Quickref -->
63
+
64
+ <!-- Method Quickref -->
62
65
  <div id="method-list-section" class="nav-section">
63
66
  <h3>Methods</h3>
64
67
 
65
68
  <ul class="link-list" role="directory">
66
-
67
69
  <li ><a href="#method-i-define_attribute">#define_attribute</a>
68
-
69
70
  <li ><a href="#method-i-define_child_node">#define_child_node</a>
70
-
71
71
  <li ><a href="#method-i-define_element_name">#define_element_name</a>
72
-
72
+ <li ><a href="#method-i-define_relationship">#define_relationship</a>
73
73
  <li ><a href="#method-i-obtain_class_variable">#obtain_class_variable</a>
74
-
75
74
  <li ><a href="#method-i-parse">#parse</a>
76
-
77
75
  </ul>
78
76
  </div>
79
77
 
@@ -89,36 +87,25 @@
89
87
 
90
88
  </section>
91
89
 
92
-
93
90
  <section id="5Buntitled-5D" class="documentation-section">
94
-
95
91
 
96
-
97
92
 
98
-
99
93
 
100
-
101
94
 
102
-
95
+
103
96
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
104
97
  <header>
105
98
  <h3>Public Instance Methods</h3>
106
99
  </header>
107
100
 
108
-
109
101
  <div id="method-i-define_attribute" class="method-detail ">
110
-
111
102
  <div class="method-heading">
112
103
  <span class="method-name">define_attribute</span><span
113
104
  class="method-args">(attr_name, attr_type, extra_params = {})</span>
114
-
115
105
  <span class="method-click-advice">click to toggle source</span>
116
-
117
106
  </div>
118
-
119
107
 
120
108
  <div class="method-description">
121
-
122
109
  <p>Defines an attribute of OOXML object.</p>
123
110
 
124
111
  <h3 id="method-i-define_attribute-label-Parameters">Parameters<span><a href="#method-i-define_attribute-label-Parameters">&para;</a> <a href="#top">&uarr;</a></span></h3>
@@ -180,10 +167,7 @@
180
167
  </pre>
181
168
 
182
169
  <p>A <code>String</code> attribute named &#39;errorStyle&#39; will be accessible as <code>obj.error_style</code>, valid values are <code>&quot;stop&quot;</code>, <code>&quot;warning&quot;</code>, <code>&quot;information&quot;</code></p>
183
-
184
-
185
170
 
186
-
187
171
  <div class="method-source-code" id="define_attribute-source">
188
172
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 48</span>
189
173
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_attribute</span>(<span class="ruby-identifier">attr_name</span>, <span class="ruby-identifier">attr_type</span>, <span class="ruby-identifier">extra_params</span> = {})
@@ -194,28 +178,19 @@
194
178
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:attr_accessor</span>, <span class="ruby-identifier">attr_hash</span>[<span class="ruby-value">:accessor</span>]) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">attr_hash</span>[<span class="ruby-value">:computed</span>]
195
179
  <span class="ruby-keyword">end</span></pre>
196
180
  </div>
197
-
198
181
  </div>
199
182
 
200
-
201
183
 
202
-
203
184
  </div>
204
185
 
205
-
206
186
  <div id="method-i-define_child_node" class="method-detail ">
207
-
208
187
  <div class="method-heading">
209
188
  <span class="method-name">define_child_node</span><span
210
189
  class="method-args">(klass, extra_params = {})</span>
211
-
212
190
  <span class="method-click-advice">click to toggle source</span>
213
-
214
191
  </div>
215
-
216
192
 
217
193
  <div class="method-description">
218
-
219
194
  <p>Defines a child node of OOXML object.</p>
220
195
 
221
196
  <h3 id="method-i-define_child_node-label-Parameters">Parameters<span><a href="#method-i-define_child_node-label-Parameters">&para;</a> <a href="#top">&uarr;</a></span></h3>
@@ -261,12 +236,9 @@
261
236
  </pre>
262
237
 
263
238
  <p>Upon writing of the object this was defined on, its <code>count</code> attribute will be set to the count of nodes in <code>fonts</code> array</p>
264
-
265
-
266
239
 
267
-
268
240
  <div class="method-source-code" id="define_child_node-source">
269
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 76</span>
241
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 81</span>
270
242
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_child_node</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">extra_params</span> = {})
271
243
  <span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
272
244
  <span class="ruby-identifier">child_node_name</span> = (<span class="ruby-identifier">extra_params</span>[<span class="ruby-value">:node_name</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">class_variable_get</span>(<span class="ruby-value">:@@ooxml_tag_name</span>)).<span class="ruby-identifier">to_s</span>
@@ -283,28 +255,19 @@
283
255
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:attr_accessor</span>, <span class="ruby-identifier">accessor</span>)
284
256
  <span class="ruby-keyword">end</span></pre>
285
257
  </div>
286
-
287
258
  </div>
288
259
 
289
-
290
260
 
291
-
292
261
  </div>
293
262
 
294
-
295
263
  <div id="method-i-define_element_name" class="method-detail ">
296
-
297
264
  <div class="method-heading">
298
265
  <span class="method-name">define_element_name</span><span
299
266
  class="method-args">(element_name)</span>
300
-
301
267
  <span class="method-click-advice">click to toggle source</span>
302
-
303
268
  </div>
304
-
305
269
 
306
270
  <div class="method-description">
307
-
308
271
  <p>Defines the name of the element that represents the current OOXML object. Should only be used once per object. In case of different objects represented by the same class in different parts of OOXML tree, <code>:node_name</code> extra parameter can be used to override the default element name.</p>
309
272
 
310
273
  <h3 id="method-i-define_element_name-label-Parameters">Parameters<span><a href="#method-i-define_element_name-label-Parameters">&para;</a> <a href="#top">&uarr;</a></span></h3>
@@ -316,45 +279,51 @@
316
279
 
317
280
  <pre class="ruby"><span class="ruby-identifier">define_element_name</span> <span class="ruby-string">&#39;externalReference&#39;</span>
318
281
  </pre>
319
-
320
-
321
282
 
322
-
323
283
  <div class="method-source-code" id="define_element_name-source">
324
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 104</span>
284
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 109</span>
325
285
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
326
286
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_set</span>(<span class="ruby-value">:@@ooxml_tag_name</span>, <span class="ruby-identifier">element_name</span>)
327
287
  <span class="ruby-keyword">end</span></pre>
328
288
  </div>
329
-
330
289
  </div>
331
290
 
332
-
333
291
 
334
-
335
292
  </div>
336
293
 
337
-
294
+ <div id="method-i-define_relationship" class="method-detail ">
295
+ <div class="method-heading">
296
+ <span class="method-name">define_relationship</span><span
297
+ class="method-args">(extra_params = {})</span>
298
+ <span class="method-click-advice">click to toggle source</span>
299
+ </div>
300
+
301
+ <div class="method-description">
302
+ <p>Defines a `r:id` attribute</p>
303
+
304
+ <div class="method-source-code" id="define_relationship-source">
305
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 57</span>
306
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_relationship</span>(<span class="ruby-identifier">extra_params</span> = {})
307
+ <span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:&#39;r:id&#39;</span>, <span class="ruby-value">:string</span>, <span class="ruby-identifier">extra_params</span>)
308
+ <span class="ruby-keyword">end</span></pre>
309
+ </div>
310
+ </div>
311
+
312
+
313
+ </div>
314
+
338
315
  <div id="method-i-obtain_class_variable" class="method-detail ">
339
-
340
316
  <div class="method-heading">
341
317
  <span class="method-name">obtain_class_variable</span><span
342
318
  class="method-args">(var_name, default = {})</span>
343
-
344
319
  <span class="method-click-advice">click to toggle source</span>
345
-
346
320
  </div>
347
-
348
321
 
349
322
  <div class="method-description">
350
-
351
323
  <p>Get the value of a [sub]class variable if it exists, or create the respective variable with the passed-in <code>default</code> (or +{}+, if not specified)</p>
352
324
 
353
325
  <p>Throughout this class, we are setting class variables through explicit method calls rather than by directly addressing the name of the variable because of context issues: addressing variable by name creates it in the context of defining class, while calling the setter/getter method addresses it in the context of descendant class, which is what we need.</p>
354
-
355
-
356
326
 
357
-
358
327
  <div class="method-source-code" id="obtain_class_variable-source">
359
328
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 15</span>
360
329
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">obtain_class_variable</span>(<span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">default</span> = {})
@@ -363,35 +332,23 @@
363
332
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_set</span>(<span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">default</span>)
364
333
  <span class="ruby-keyword">end</span></pre>
365
334
  </div>
366
-
367
335
  </div>
368
336
 
369
-
370
337
 
371
-
372
338
  </div>
373
339
 
374
-
375
340
  <div id="method-i-parse" class="method-detail ">
376
-
377
341
  <div class="method-heading">
378
342
  <span class="method-name">parse</span><span
379
343
  class="method-args">(node, known_namespaces = nil)</span>
380
-
381
344
  <span class="method-click-advice">click to toggle source</span>
382
-
383
345
  </div>
384
-
385
346
 
386
347
  <div class="method-description">
387
348
 
388
-
389
-
390
-
391
349
 
392
-
393
350
  <div class="method-source-code" id="parse-source">
394
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 108</span>
351
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 113</span>
395
352
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">known_namespaces</span> = <span class="ruby-keyword">nil</span>)
396
353
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">node</span>
397
354
  <span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">IO</span>, <span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">InputStream</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">node</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>)
@@ -431,7 +388,9 @@
431
388
  <span class="ruby-identifier">node</span>.<span class="ruby-identifier">element_children</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">child_node</span><span class="ruby-operator">|</span>
432
389
 
433
390
  <span class="ruby-identifier">ns</span> = <span class="ruby-identifier">child_node</span>.<span class="ruby-identifier">namespace</span>
434
- <span class="ruby-identifier">prefix</span> = <span class="ruby-identifier">known_namespaces</span>[<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">href</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">prefix</span>
391
+ <span class="ruby-identifier">prefix</span> = <span class="ruby-keyword">if</span> <span class="ruby-identifier">known_namespaces</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">href</span>) <span class="ruby-keyword">then</span> <span class="ruby-identifier">known_namespaces</span>[<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">href</span>]
392
+ <span class="ruby-keyword">else</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">prefix</span>
393
+ <span class="ruby-keyword">end</span>
435
394
 
436
395
  <span class="ruby-identifier">child_node_name</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">prefix</span>
437
396
  <span class="ruby-keyword">when</span> <span class="ruby-string">&#39;&#39;</span>, <span class="ruby-keyword">nil</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">child_node</span>.<span class="ruby-identifier">name</span>
@@ -462,24 +421,20 @@
462
421
  <span class="ruby-identifier">obj</span>
463
422
  <span class="ruby-keyword">end</span></pre>
464
423
  </div>
465
-
466
424
  </div>
467
425
 
468
-
469
426
 
470
-
471
427
  </div>
472
428
 
473
-
474
429
  </section>
475
-
430
+
476
431
  </section>
477
432
  </main>
478
433
 
479
434
 
480
435
  <footer id="validator-badges" role="contentinfo">
481
436
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
482
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
437
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
483
438
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
484
439
  </footer>
485
440