rubyXL 3.4.12 → 3.4.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (456) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +2 -1
  3. data/Gemfile +8 -8
  4. data/Gemfile.lock +82 -50
  5. data/README.rdoc +26 -9
  6. data/Rakefile +26 -27
  7. data/VERSION +1 -1
  8. data/lib/rubyXL/cell.rb +2 -4
  9. data/lib/rubyXL/convenience_methods/cell.rb +35 -31
  10. data/lib/rubyXL/convenience_methods/color.rb +6 -8
  11. data/lib/rubyXL/convenience_methods/workbook.rb +9 -4
  12. data/lib/rubyXL/convenience_methods/worksheet.rb +77 -1
  13. data/lib/rubyXL/objects/border.rb +0 -3
  14. data/lib/rubyXL/objects/calculation_chain.rb +2 -2
  15. data/lib/rubyXL/objects/cell_style.rb +1 -3
  16. data/lib/rubyXL/objects/chartsheet.rb +6 -10
  17. data/lib/rubyXL/objects/color.rb +1 -3
  18. data/lib/rubyXL/objects/column_range.rb +0 -3
  19. data/lib/rubyXL/objects/comments.rb +1 -4
  20. data/lib/rubyXL/objects/connection.rb +11 -11
  21. data/lib/rubyXL/objects/container_nodes.rb +1 -5
  22. data/lib/rubyXL/objects/content_types.rb +3 -6
  23. data/lib/rubyXL/objects/data_validation.rb +2 -2
  24. data/lib/rubyXL/objects/document_properties.rb +9 -13
  25. data/lib/rubyXL/objects/extensions.rb +0 -2
  26. data/lib/rubyXL/objects/external_links.rb +29 -7
  27. data/lib/rubyXL/objects/fill.rb +2 -5
  28. data/lib/rubyXL/objects/filters.rb +5 -7
  29. data/lib/rubyXL/objects/font.rb +2 -4
  30. data/lib/rubyXL/objects/formula.rb +3 -5
  31. data/lib/rubyXL/objects/ooxml_object.rb +18 -18
  32. data/lib/rubyXL/objects/query_table.rb +3 -3
  33. data/lib/rubyXL/objects/reference.rb +6 -8
  34. data/lib/rubyXL/objects/relationships.rb +6 -11
  35. data/lib/rubyXL/objects/root.rb +0 -2
  36. data/lib/rubyXL/objects/shared_strings.rb +3 -6
  37. data/lib/rubyXL/objects/sheet_common.rb +1 -3
  38. data/lib/rubyXL/objects/sheet_data.rb +6 -8
  39. data/lib/rubyXL/objects/simple_types.rb +3 -1
  40. data/lib/rubyXL/objects/storage.rb +51 -50
  41. data/lib/rubyXL/objects/stylesheet.rb +8 -15
  42. data/lib/rubyXL/objects/text.rb +5 -7
  43. data/lib/rubyXL/objects/theme.rb +5 -8
  44. data/lib/rubyXL/objects/workbook.rb +35 -31
  45. data/lib/rubyXL/objects/worksheet.rb +33 -29
  46. data/lib/rubyXL/parser.rb +1 -3
  47. data/lib/rubyXL/worksheet.rb +83 -84
  48. data/lib/rubyXL.rb +0 -1
  49. data/rdoc/README_rdoc.html +42 -28
  50. data/rdoc/RubyXL/AExtension.html +9 -49
  51. data/rdoc/RubyXL/AExtensionStorageArea.html +5 -12
  52. data/rdoc/RubyXL/ActiveX.html +12 -41
  53. data/rdoc/RubyXL/ActiveXBinary.html +5 -17
  54. data/rdoc/RubyXL/AdjustHandleList.html +5 -12
  55. data/rdoc/RubyXL/Alignment.html +5 -12
  56. data/rdoc/RubyXL/AlternateContent.html +5 -12
  57. data/rdoc/RubyXL/Authors.html +5 -12
  58. data/rdoc/RubyXL/AutoFilter.html +5 -12
  59. data/rdoc/RubyXL/AutoFilterColumn.html +5 -12
  60. data/rdoc/RubyXL/BinaryImageFile.html +5 -20
  61. data/rdoc/RubyXL/BodyProperties.html +5 -12
  62. data/rdoc/RubyXL/BooleanNode.html +5 -12
  63. data/rdoc/RubyXL/BooleanValue.html +5 -12
  64. data/rdoc/RubyXL/Border.html +12 -72
  65. data/rdoc/RubyXL/BorderEdge.html +10 -44
  66. data/rdoc/RubyXL/Borders.html +9 -30
  67. data/rdoc/RubyXL/Break.html +5 -12
  68. data/rdoc/RubyXL/BreakList.html +5 -12
  69. data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -12
  70. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -12
  71. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -12
  72. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -12
  73. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -12
  74. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -12
  75. data/rdoc/RubyXL/CT_Backdrop.html +5 -12
  76. data/rdoc/RubyXL/CT_Bevel.html +5 -12
  77. data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -12
  78. data/rdoc/RubyXL/CT_BlendEffect.html +5 -12
  79. data/rdoc/RubyXL/CT_Blip.html +5 -12
  80. data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -12
  81. data/rdoc/RubyXL/CT_BlurEffect.html +5 -12
  82. data/rdoc/RubyXL/CT_Camera.html +5 -12
  83. data/rdoc/RubyXL/CT_Color.html +5 -12
  84. data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -12
  85. data/rdoc/RubyXL/CT_ColorMapping.html +5 -12
  86. data/rdoc/RubyXL/CT_ColorScheme.html +5 -12
  87. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -12
  88. data/rdoc/RubyXL/CT_ConnectionSite.html +5 -12
  89. data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -12
  90. data/rdoc/RubyXL/CT_DashStop.html +5 -12
  91. data/rdoc/RubyXL/CT_DashStopList.html +5 -12
  92. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -12
  93. data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -12
  94. data/rdoc/RubyXL/CT_EffectContainer.html +5 -12
  95. data/rdoc/RubyXL/CT_EffectList.html +5 -12
  96. data/rdoc/RubyXL/CT_EffectReference.html +5 -12
  97. data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -12
  98. data/rdoc/RubyXL/CT_EffectStyleList.html +5 -12
  99. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -12
  100. data/rdoc/RubyXL/CT_FillEffect.html +5 -12
  101. data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -12
  102. data/rdoc/RubyXL/CT_FillStyleList.html +5 -12
  103. data/rdoc/RubyXL/CT_FlatText.html +5 -12
  104. data/rdoc/RubyXL/CT_FontCollection.html +5 -12
  105. data/rdoc/RubyXL/CT_FontReference.html +5 -12
  106. data/rdoc/RubyXL/CT_GeomGuideList.html +5 -12
  107. data/rdoc/RubyXL/CT_GlowEffect.html +5 -12
  108. data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -12
  109. data/rdoc/RubyXL/CT_GradientStop.html +5 -12
  110. data/rdoc/RubyXL/CT_GradientStopList.html +5 -12
  111. data/rdoc/RubyXL/CT_HSLEffect.html +5 -12
  112. data/rdoc/RubyXL/CT_HslColor.html +5 -12
  113. data/rdoc/RubyXL/CT_Hyperlink.html +5 -12
  114. data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -12
  115. data/rdoc/RubyXL/CT_LightRig.html +5 -12
  116. data/rdoc/RubyXL/CT_LineEndProperties.html +5 -12
  117. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -12
  118. data/rdoc/RubyXL/CT_LineProperties.html +5 -12
  119. data/rdoc/RubyXL/CT_LineStyleList.html +5 -12
  120. data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -12
  121. data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -12
  122. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -12
  123. data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -12
  124. data/rdoc/RubyXL/CT_Path2D.html +5 -12
  125. data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -12
  126. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -12
  127. data/rdoc/RubyXL/CT_Path2DList.html +5 -12
  128. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -12
  129. data/rdoc/RubyXL/CT_Path2DTo.html +5 -12
  130. data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -12
  131. data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -12
  132. data/rdoc/RubyXL/CT_Point3D.html +5 -12
  133. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -12
  134. data/rdoc/RubyXL/CT_PresetColor.html +5 -12
  135. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -12
  136. data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -12
  137. data/rdoc/RubyXL/CT_PresetTextShape.html +5 -12
  138. data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -12
  139. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -12
  140. data/rdoc/RubyXL/CT_RelativeRect.html +5 -12
  141. data/rdoc/RubyXL/CT_SRgbColor.html +5 -12
  142. data/rdoc/RubyXL/CT_ScRgbColor.html +5 -12
  143. data/rdoc/RubyXL/CT_Scene3D.html +5 -12
  144. data/rdoc/RubyXL/CT_SchemeColor.html +5 -12
  145. data/rdoc/RubyXL/CT_Shape3D.html +5 -12
  146. data/rdoc/RubyXL/CT_ShapeStyle.html +5 -12
  147. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -12
  148. data/rdoc/RubyXL/CT_SphereCoords.html +5 -12
  149. data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -12
  150. data/rdoc/RubyXL/CT_StyleMatrix.html +5 -12
  151. data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -12
  152. data/rdoc/RubyXL/CT_SupplementalFont.html +5 -12
  153. data/rdoc/RubyXL/CT_SystemColor.html +5 -12
  154. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -12
  155. data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -12
  156. data/rdoc/RubyXL/CT_TextCharBullet.html +5 -12
  157. data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -12
  158. data/rdoc/RubyXL/CT_TextFont.html +5 -12
  159. data/rdoc/RubyXL/CT_TextListStyle.html +5 -12
  160. data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -12
  161. data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -12
  162. data/rdoc/RubyXL/CT_TextSpacing.html +5 -12
  163. data/rdoc/RubyXL/CT_TextTabStop.html +5 -12
  164. data/rdoc/RubyXL/CT_TextTabStopList.html +5 -12
  165. data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -12
  166. data/rdoc/RubyXL/CT_TintEffect.html +5 -12
  167. data/rdoc/RubyXL/CT_Transform2D.html +5 -12
  168. data/rdoc/RubyXL/CT_TransformEffect.html +5 -12
  169. data/rdoc/RubyXL/CT_Vector3D.html +5 -12
  170. data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -12
  171. data/rdoc/RubyXL/CalculationChain.html +8 -37
  172. data/rdoc/RubyXL/CalculationChainCell.html +5 -12
  173. data/rdoc/RubyXL/CalculationProperties.html +5 -12
  174. data/rdoc/RubyXL/Cell.html +26 -228
  175. data/rdoc/RubyXL/CellConvenienceMethods.html +108 -503
  176. data/rdoc/RubyXL/CellExt.html +5 -12
  177. data/rdoc/RubyXL/CellSmartTag.html +5 -12
  178. data/rdoc/RubyXL/CellSmartTagProperty.html +5 -12
  179. data/rdoc/RubyXL/CellSmartTags.html +5 -12
  180. data/rdoc/RubyXL/CellStyle.html +5 -12
  181. data/rdoc/RubyXL/CellStyleXFs.html +9 -30
  182. data/rdoc/RubyXL/CellStyles.html +9 -30
  183. data/rdoc/RubyXL/CellValue.html +9 -30
  184. data/rdoc/RubyXL/CellWatch.html +5 -12
  185. data/rdoc/RubyXL/CellWatches.html +5 -12
  186. data/rdoc/RubyXL/CellXFs.html +10 -33
  187. data/rdoc/RubyXL/ChartColorsFile.html +5 -20
  188. data/rdoc/RubyXL/ChartFile.html +11 -43
  189. data/rdoc/RubyXL/ChartStyleFile.html +5 -20
  190. data/rdoc/RubyXL/ChartUserShapesFile.html +5 -20
  191. data/rdoc/RubyXL/Chartsheet.html +11 -60
  192. data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -12
  193. data/rdoc/RubyXL/ChartsheetProperties.html +5 -12
  194. data/rdoc/RubyXL/ChartsheetProtection.html +5 -12
  195. data/rdoc/RubyXL/ChartsheetView.html +5 -12
  196. data/rdoc/RubyXL/ChartsheetViews.html +5 -12
  197. data/rdoc/RubyXL/Color.html +10 -36
  198. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +10 -58
  199. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +18 -78
  200. data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -9
  201. data/rdoc/RubyXL/ColorConvenienceMethods.html +7 -27
  202. data/rdoc/RubyXL/ColorFilter.html +5 -12
  203. data/rdoc/RubyXL/ColorScale.html +5 -12
  204. data/rdoc/RubyXL/ColorSet.html +5 -12
  205. data/rdoc/RubyXL/Colors.html +5 -12
  206. data/rdoc/RubyXL/ColumnRange.html +11 -63
  207. data/rdoc/RubyXL/ColumnRanges.html +12 -72
  208. data/rdoc/RubyXL/Comment.html +5 -12
  209. data/rdoc/RubyXL/CommentList.html +5 -12
  210. data/rdoc/RubyXL/CommentsFile.html +9 -43
  211. data/rdoc/RubyXL/ConditionalFormatValue.html +5 -12
  212. data/rdoc/RubyXL/ConditionalFormatting.html +5 -12
  213. data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -12
  214. data/rdoc/RubyXL/Connection.html +5 -12
  215. data/rdoc/RubyXL/ConnectionTable.html +5 -12
  216. data/rdoc/RubyXL/ConnectionTables.html +5 -12
  217. data/rdoc/RubyXL/ConnectionTextField.html +5 -12
  218. data/rdoc/RubyXL/ConnectionTextFields.html +5 -12
  219. data/rdoc/RubyXL/Connections.html +8 -37
  220. data/rdoc/RubyXL/ContentTypeDefault.html +5 -12
  221. data/rdoc/RubyXL/ContentTypeOverride.html +5 -12
  222. data/rdoc/RubyXL/ContentTypes.html +12 -54
  223. data/rdoc/RubyXL/ControlPropertiesFile.html +7 -17
  224. data/rdoc/RubyXL/CorePropertiesFile.html +17 -155
  225. data/rdoc/RubyXL/CustomColor.html +5 -12
  226. data/rdoc/RubyXL/CustomColorList.html +5 -12
  227. data/rdoc/RubyXL/CustomFilter.html +5 -12
  228. data/rdoc/RubyXL/CustomFilters.html +5 -12
  229. data/rdoc/RubyXL/CustomGeometry.html +5 -12
  230. data/rdoc/RubyXL/CustomProperties.html +5 -12
  231. data/rdoc/RubyXL/CustomPropertiesFile.html +5 -20
  232. data/rdoc/RubyXL/CustomProperty.html +5 -12
  233. data/rdoc/RubyXL/CustomPropertyFile.html +5 -20
  234. data/rdoc/RubyXL/CustomSheetView.html +5 -12
  235. data/rdoc/RubyXL/CustomSheetViews.html +5 -12
  236. data/rdoc/RubyXL/CustomWorkbookView.html +5 -12
  237. data/rdoc/RubyXL/CustomWorkbookViews.html +5 -12
  238. data/rdoc/RubyXL/CustomXMLFile.html +5 -17
  239. data/rdoc/RubyXL/DXF.html +5 -12
  240. data/rdoc/RubyXL/DXFs.html +5 -12
  241. data/rdoc/RubyXL/DataBar.html +5 -12
  242. data/rdoc/RubyXL/DataConsolidate.html +5 -12
  243. data/rdoc/RubyXL/DataConsolidationReference.html +5 -12
  244. data/rdoc/RubyXL/DataConsolidationReferences.html +5 -12
  245. data/rdoc/RubyXL/DataType.html +3 -32
  246. data/rdoc/RubyXL/DataValidation.html +5 -12
  247. data/rdoc/RubyXL/DataValidations.html +5 -12
  248. data/rdoc/RubyXL/DateGroupItem.html +5 -12
  249. data/rdoc/RubyXL/DefinedName.html +5 -12
  250. data/rdoc/RubyXL/DefinedNameExt.html +5 -12
  251. data/rdoc/RubyXL/DefinedNames.html +5 -12
  252. data/rdoc/RubyXL/DefinedNamesExt.html +5 -12
  253. data/rdoc/RubyXL/DocumentPropertiesFile.html +10 -57
  254. data/rdoc/RubyXL/DrawingFile.html +11 -43
  255. data/rdoc/RubyXL/DynamicFilter.html +5 -12
  256. data/rdoc/RubyXL/EmbeddedControl.html +5 -12
  257. data/rdoc/RubyXL/EmbeddedControls.html +5 -12
  258. data/rdoc/RubyXL/Extension.html +5 -12
  259. data/rdoc/RubyXL/ExtensionStorageArea.html +5 -12
  260. data/rdoc/RubyXL/Extents.html +5 -12
  261. data/rdoc/RubyXL/ExternalBook.html +5 -12
  262. data/rdoc/RubyXL/ExternalLinksFile.html +11 -43
  263. data/rdoc/RubyXL/ExternalReference.html +5 -12
  264. data/rdoc/RubyXL/ExternalReferences.html +5 -12
  265. data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -12
  266. data/rdoc/RubyXL/FieldItem.html +5 -12
  267. data/rdoc/RubyXL/FileRecoveryProperties.html +5 -12
  268. data/rdoc/RubyXL/FileSharing.html +5 -12
  269. data/rdoc/RubyXL/FileVersion.html +5 -12
  270. data/rdoc/RubyXL/Fill.html +9 -30
  271. data/rdoc/RubyXL/Fills.html +9 -30
  272. data/rdoc/RubyXL/FilterContainer.html +5 -12
  273. data/rdoc/RubyXL/FloatNode.html +5 -12
  274. data/rdoc/RubyXL/FloatValue.html +5 -12
  275. data/rdoc/RubyXL/Font.html +11 -37
  276. data/rdoc/RubyXL/FontConvenienceMethods.html +7 -196
  277. data/rdoc/RubyXL/FontScheme.html +5 -12
  278. data/rdoc/RubyXL/Fonts.html +9 -30
  279. data/rdoc/RubyXL/Formula.html +5 -12
  280. data/rdoc/RubyXL/FunctionGroup.html +5 -12
  281. data/rdoc/RubyXL/FunctionGroups.html +5 -12
  282. data/rdoc/RubyXL/GenericStorageObject.html +12 -76
  283. data/rdoc/RubyXL/GradientFill.html +5 -12
  284. data/rdoc/RubyXL/HeaderFooterSettings.html +5 -12
  285. data/rdoc/RubyXL/Hyperlink.html +5 -12
  286. data/rdoc/RubyXL/HyperlinkRelFile.html +5 -17
  287. data/rdoc/RubyXL/Hyperlinks.html +5 -12
  288. data/rdoc/RubyXL/IconFilter.html +5 -12
  289. data/rdoc/RubyXL/IconSet.html +5 -12
  290. data/rdoc/RubyXL/IgnoredError.html +5 -12
  291. data/rdoc/RubyXL/IgnoredErrors.html +5 -12
  292. data/rdoc/RubyXL/IndexedColors.html +5 -12
  293. data/rdoc/RubyXL/InputCells.html +5 -12
  294. data/rdoc/RubyXL/IntegerNode.html +5 -12
  295. data/rdoc/RubyXL/IntegerValue.html +5 -12
  296. data/rdoc/RubyXL/LegacyCell.html +7 -27
  297. data/rdoc/RubyXL/LegacyWorksheet.html +11 -88
  298. data/rdoc/RubyXL/MRUColors.html +5 -12
  299. data/rdoc/RubyXL/MacrosFile.html +5 -20
  300. data/rdoc/RubyXL/MergedCell.html +5 -12
  301. data/rdoc/RubyXL/MergedCells.html +5 -12
  302. data/rdoc/RubyXL/NumFmt.html +5 -12
  303. data/rdoc/RubyXL/NumberFormat.html +10 -31
  304. data/rdoc/RubyXL/NumberFormats.html +9 -35
  305. data/rdoc/RubyXL/OLEObject.html +5 -12
  306. data/rdoc/RubyXL/OLEObjectFile.html +5 -20
  307. data/rdoc/RubyXL/OLEObjects.html +5 -12
  308. data/rdoc/RubyXL/OLESize.html +5 -12
  309. data/rdoc/RubyXL/OOXMLContainerObject.html +19 -114
  310. data/rdoc/RubyXL/OOXMLIgnored.html +11 -46
  311. data/rdoc/RubyXL/OOXMLObject.html +8 -18
  312. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +42 -92
  313. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +23 -144
  314. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +24 -181
  315. data/rdoc/RubyXL/OOXMLTopLevelObject.html +15 -102
  316. data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -12
  317. data/rdoc/RubyXL/Offset.html +5 -12
  318. data/rdoc/RubyXL/OlapProperties.html +5 -12
  319. data/rdoc/RubyXL/OleItem.html +99 -0
  320. data/rdoc/RubyXL/OleItems.html +99 -0
  321. data/rdoc/RubyXL/OleLink.html +99 -0
  322. data/rdoc/RubyXL/OutlineProperties.html +5 -12
  323. data/rdoc/RubyXL/PageMargins.html +5 -12
  324. data/rdoc/RubyXL/PageSetup.html +5 -12
  325. data/rdoc/RubyXL/PageSetupProperties.html +5 -12
  326. data/rdoc/RubyXL/Pane.html +5 -12
  327. data/rdoc/RubyXL/Parser.html +11 -45
  328. data/rdoc/RubyXL/PatternFill.html +5 -12
  329. data/rdoc/RubyXL/PhoneticProperties.html +5 -12
  330. data/rdoc/RubyXL/PhoneticRun.html +5 -12
  331. data/rdoc/RubyXL/PivotArea.html +5 -12
  332. data/rdoc/RubyXL/PivotCache.html +5 -12
  333. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +7 -25
  334. data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -20
  335. data/rdoc/RubyXL/PivotCaches.html +5 -12
  336. data/rdoc/RubyXL/PivotReference.html +5 -12
  337. data/rdoc/RubyXL/PivotReferences.html +5 -12
  338. data/rdoc/RubyXL/PivotTableFile.html +7 -25
  339. data/rdoc/RubyXL/PivotTableSelection.html +5 -12
  340. data/rdoc/RubyXL/PresetGeometry.html +5 -12
  341. data/rdoc/RubyXL/PrintOptions.html +5 -12
  342. data/rdoc/RubyXL/PrinterSettingsFile.html +5 -20
  343. data/rdoc/RubyXL/ProtectedRange.html +5 -12
  344. data/rdoc/RubyXL/ProtectedRanges.html +5 -12
  345. data/rdoc/RubyXL/Protection.html +5 -12
  346. data/rdoc/RubyXL/QueryParameter.html +5 -12
  347. data/rdoc/RubyXL/QueryParameters.html +5 -12
  348. data/rdoc/RubyXL/QueryTable.html +10 -42
  349. data/rdoc/RubyXL/QueryTableDeletedField.html +5 -12
  350. data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -12
  351. data/rdoc/RubyXL/QueryTableField.html +5 -12
  352. data/rdoc/RubyXL/QueryTableFields.html +5 -12
  353. data/rdoc/RubyXL/QueryTableRefresh.html +5 -12
  354. data/rdoc/RubyXL/RID.html +5 -12
  355. data/rdoc/RubyXL/RawOOXML.html +11 -51
  356. data/rdoc/RubyXL/Reference.html +42 -204
  357. data/rdoc/RubyXL/Relationship.html +5 -12
  358. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +7 -27
  359. data/rdoc/RubyXL/RelationshipSupport.html +15 -112
  360. data/rdoc/RubyXL/RevisionPointer.html +5 -12
  361. data/rdoc/RubyXL/RichText.html +11 -31
  362. data/rdoc/RubyXL/RichTextRun.html +9 -30
  363. data/rdoc/RubyXL/Row.html +8 -143
  364. data/rdoc/RubyXL/RowExt.html +5 -12
  365. data/rdoc/RubyXL/RunProperties.html +5 -12
  366. data/rdoc/RubyXL/Scenario.html +5 -12
  367. data/rdoc/RubyXL/Scenarios.html +5 -12
  368. data/rdoc/RubyXL/Selection.html +9 -30
  369. data/rdoc/RubyXL/ShapeGuide.html +5 -12
  370. data/rdoc/RubyXL/ShapeTextRectangle.html +5 -12
  371. data/rdoc/RubyXL/SharedStringsTable.html +16 -126
  372. data/rdoc/RubyXL/Sheet.html +5 -12
  373. data/rdoc/RubyXL/SheetCalculationProperties.html +5 -12
  374. data/rdoc/RubyXL/SheetData.html +8 -42
  375. data/rdoc/RubyXL/SheetDataExt.html +5 -12
  376. data/rdoc/RubyXL/SheetDataSet.html +5 -12
  377. data/rdoc/RubyXL/SheetMetadata.html +108 -0
  378. data/rdoc/RubyXL/SheetName.html +5 -12
  379. data/rdoc/RubyXL/SheetNames.html +5 -12
  380. data/rdoc/RubyXL/Sheets.html +5 -12
  381. data/rdoc/RubyXL/SlicerCacheFile.html +5 -20
  382. data/rdoc/RubyXL/SlicerFile.html +5 -20
  383. data/rdoc/RubyXL/SmartTagProperties.html +5 -12
  384. data/rdoc/RubyXL/SmartTagType.html +5 -12
  385. data/rdoc/RubyXL/SmartTagTypes.html +5 -12
  386. data/rdoc/RubyXL/SmartTags.html +5 -12
  387. data/rdoc/RubyXL/SortCondition.html +5 -12
  388. data/rdoc/RubyXL/SortState.html +5 -12
  389. data/rdoc/RubyXL/Sqref.html +11 -46
  390. data/rdoc/RubyXL/Stop.html +5 -12
  391. data/rdoc/RubyXL/StringNode.html +5 -12
  392. data/rdoc/RubyXL/StringNodeW3C.html +11 -46
  393. data/rdoc/RubyXL/StringValue.html +5 -12
  394. data/rdoc/RubyXL/Stylesheet.html +14 -97
  395. data/rdoc/RubyXL/TableFile.html +5 -20
  396. data/rdoc/RubyXL/TableParts.html +5 -12
  397. data/rdoc/RubyXL/TableStyle.html +5 -12
  398. data/rdoc/RubyXL/TableStyles.html +5 -12
  399. data/rdoc/RubyXL/Text.html +12 -54
  400. data/rdoc/RubyXL/TextImportSettings.html +5 -12
  401. data/rdoc/RubyXL/Theme.html +12 -68
  402. data/rdoc/RubyXL/ThemeElements.html +5 -12
  403. data/rdoc/RubyXL/ThumbnailFile.html +5 -20
  404. data/rdoc/RubyXL/Top10.html +5 -12
  405. data/rdoc/RubyXL/VMLDrawingFile.html +8 -26
  406. data/rdoc/RubyXL/Variant.html +5 -12
  407. data/rdoc/RubyXL/Vector.html +9 -30
  408. data/rdoc/RubyXL/VectorValue.html +5 -12
  409. data/rdoc/RubyXL/VisualProperties.html +5 -12
  410. data/rdoc/RubyXL/WebPublishObject.html +5 -12
  411. data/rdoc/RubyXL/WebPublishObjects.html +5 -12
  412. data/rdoc/RubyXL/WebPublishingItem.html +5 -12
  413. data/rdoc/RubyXL/WebPublishingItems.html +5 -12
  414. data/rdoc/RubyXL/WebPublishingProperties.html +5 -12
  415. data/rdoc/RubyXL/WebQueryProperties.html +5 -12
  416. data/rdoc/RubyXL/Workbook.html +45 -462
  417. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +68 -239
  418. data/rdoc/RubyXL/WorkbookProperties.html +5 -12
  419. data/rdoc/RubyXL/WorkbookProtection.html +5 -12
  420. data/rdoc/RubyXL/WorkbookRoot.html +16 -104
  421. data/rdoc/RubyXL/WorkbookView.html +5 -12
  422. data/rdoc/RubyXL/WorkbookViews.html +5 -12
  423. data/rdoc/RubyXL/Worksheet.html +40 -135
  424. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +170 -989
  425. data/rdoc/RubyXL/WorksheetDimensions.html +5 -12
  426. data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -12
  427. data/rdoc/RubyXL/WorksheetProperties.html +5 -12
  428. data/rdoc/RubyXL/WorksheetProtection.html +5 -12
  429. data/rdoc/RubyXL/WorksheetView.html +5 -12
  430. data/rdoc/RubyXL/WorksheetViews.html +5 -12
  431. data/rdoc/RubyXL/XF.html +5 -12
  432. data/rdoc/RubyXL.html +8 -319
  433. data/rdoc/created.rid +44 -44
  434. data/rdoc/css/rdoc.css +21 -1
  435. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  436. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  437. data/rdoc/index.html +9 -388
  438. data/rdoc/js/navigation.js.gz +0 -0
  439. data/rdoc/js/search_index.js +1 -1
  440. data/rdoc/js/search_index.js.gz +0 -0
  441. data/rdoc/js/searcher.js.gz +0 -0
  442. data/rdoc/table_of_contents.html +57 -5
  443. data/rubyXL.gemspec +24 -30
  444. data/spec/lib/cell_spec.rb +38 -6
  445. data/spec/lib/color_spec.rb +1 -1
  446. data/spec/lib/parser_spec.rb +24 -27
  447. data/spec/lib/reference_spec.rb +9 -3
  448. data/spec/lib/rgb_color_spec.rb +27 -0
  449. data/spec/lib/stylesheet_spec.rb +8 -11
  450. data/spec/lib/text_spec.rb +1 -5
  451. data/spec/lib/workbook_spec.rb +14 -4
  452. data/spec/lib/worksheet_spec.rb +790 -447
  453. data/spec/spec_helper.rb +2 -0
  454. data/test/test_parse_write.rb +3 -3
  455. metadata +11 -8
  456. data/test/output/test.xlsx +0 -0
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Workbook - rubyXL 3.4.12</title>
7
+ <title>class RubyXL::Workbook - rubyXL 3.4.25</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -21,7 +21,6 @@
21
21
  <link href="../css/rdoc.css" rel="stylesheet">
22
22
 
23
23
 
24
-
25
24
  <body id="top" role="document" class="class">
26
25
  <nav role="navigation">
27
26
  <div id="project-navigation">
@@ -58,93 +57,58 @@
58
57
 
59
58
  <div id="class-metadata">
60
59
 
61
- <div id="parent-class-section" class="nav-section">
60
+
61
+ <div id="parent-class-section" class="nav-section">
62
62
  <h3>Parent</h3>
63
63
 
64
-
65
64
  <p class="link"><a href="OOXMLTopLevelObject.html">RubyXL::OOXMLTopLevelObject</a>
66
-
67
65
  </div>
68
66
 
69
- <div id="includes-section" class="nav-section">
67
+
68
+ <div id="includes-section" class="nav-section">
70
69
  <h3>Included Modules</h3>
71
70
 
72
71
  <ul class="link-list">
73
-
74
-
75
72
  <li><a class="include" href="RelationshipSupport.html">RubyXL::RelationshipSupport</a>
76
-
77
-
78
-
79
73
  <li><span class="include">Enumerable</span>
80
-
81
-
82
74
  </ul>
83
75
  </div>
84
76
 
85
77
 
86
- <!-- Method Quickref -->
78
+
79
+ <!-- Method Quickref -->
87
80
  <div id="method-list-section" class="nav-section">
88
81
  <h3>Methods</h3>
89
82
 
90
83
  <ul class="link-list" role="directory">
91
-
92
84
  <li class="calls-super" ><a href="#method-c-new">::new</a>
93
-
94
85
  <li ><a href="#method-i-5B-5D">#[]</a>
95
-
96
86
  <li ><a href="#method-i-add_worksheet">#add_worksheet</a>
97
-
98
87
  <li ><a href="#method-i-application">#application</a>
99
-
100
88
  <li ><a href="#method-i-application-3D">#application=</a>
101
-
102
89
  <li ><a href="#method-i-appversion">#appversion</a>
103
-
104
90
  <li ><a href="#method-i-appversion-3D">#appversion=</a>
105
-
106
91
  <li ><a href="#method-i-before_write_xml">#before_write_xml</a>
107
-
108
92
  <li ><a href="#method-i-company">#company</a>
109
-
110
93
  <li ><a href="#method-i-company-3D">#company=</a>
111
-
112
94
  <li ><a href="#method-i-content_type">#content_type</a>
113
-
114
95
  <li ><a href="#method-i-created_at">#created_at</a>
115
-
116
96
  <li ><a href="#method-i-created_at-3D">#created_at=</a>
117
-
118
97
  <li ><a href="#method-i-creator">#creator</a>
119
-
120
98
  <li ><a href="#method-i-creator-3D">#creator=</a>
121
-
122
99
  <li ><a href="#method-i-date1904">#date1904</a>
123
-
124
100
  <li ><a href="#method-i-date1904-3D">#date1904=</a>
125
-
126
101
  <li ><a href="#method-i-date_to_num">#date_to_num</a>
127
-
128
102
  <li ><a href="#method-i-modified_at">#modified_at</a>
129
-
130
103
  <li ><a href="#method-i-modified_at-3D">#modified_at=</a>
131
-
132
104
  <li ><a href="#method-i-modifier">#modifier</a>
133
-
134
105
  <li ><a href="#method-i-modifier-3D">#modifier=</a>
135
-
136
106
  <li ><a href="#method-i-num_to_date">#num_to_date</a>
137
-
138
107
  <li ><a href="#method-i-related_objects">#related_objects</a>
139
-
140
108
  <li ><a href="#method-i-save">#save</a>
141
-
142
109
  <li ><a href="#method-i-stream">#stream</a>
143
-
144
110
  <li ><a href="#method-i-write">#write</a>
145
-
146
111
  <li ><a href="#method-i-xlsx_path">#xlsx_path</a>
147
-
148
112
  </ul>
149
113
  </div>
150
114
 
@@ -162,90 +126,48 @@
162
126
 
163
127
  </section>
164
128
 
165
-
166
129
  <section id="5Buntitled-5D" class="documentation-section">
167
-
168
130
 
169
-
170
131
 
171
-
172
132
  <section class="constants-list">
173
133
  <header>
174
134
  <h3>Constants</h3>
175
135
  </header>
176
136
  <dl>
177
-
178
137
  <dt id="APPLICATION">APPLICATION
179
-
180
138
  <dd>
181
-
182
-
183
139
  <dt id="APPVERSION">APPVERSION
184
-
185
140
  <dd>
186
-
187
-
188
141
  <dt id="CONTENT_TYPE">CONTENT_TYPE
189
-
190
142
  <dd>
191
-
192
-
193
143
  <dt id="CONTENT_TYPE_TEMPLATE">CONTENT_TYPE_TEMPLATE
194
-
195
144
  <dd>
196
-
197
-
198
145
  <dt id="CONTENT_TYPE_TEMPLATE_WITH_MACROS">CONTENT_TYPE_TEMPLATE_WITH_MACROS
199
-
200
146
  <dd>
201
-
202
-
203
147
  <dt id="CONTENT_TYPE_WITH_MACROS">CONTENT_TYPE_WITH_MACROS
204
-
205
148
  <dd>
206
-
207
-
208
149
  <dt id="DATE1899">DATE1899
209
-
210
150
  <dd><p>Subtracting one day to accomodate for erroneous 1900 leap year compatibility only for 1900 based dates</p>
211
-
212
-
213
151
  <dt id="DATE1904">DATE1904
214
-
215
152
  <dd>
216
-
217
-
218
153
  <dt id="MARCH_1_1900">MARCH_1_1900
219
-
220
154
  <dd>
221
-
222
-
223
155
  <dt id="REL_TYPE">REL_TYPE
224
-
225
156
  <dd>
226
-
227
-
228
157
  <dt id="SHEET_NAME_FORBIDDEN_CHARS">SHEET_NAME_FORBIDDEN_CHARS
229
-
230
158
  <dd><p><a href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-use-in-worksheet-names">www.accountingweb.com/technology/excel/seven-characters-you-cant-use-in-worksheet-names</a></p>
231
-
232
-
159
+ <dt id="SHEET_NAME_FORBIDDEN_NAMES">SHEET_NAME_FORBIDDEN_NAMES
160
+ <dd><p><a href="https://answers.microsoft.com/en-us/msoffice/forum/all/excel-history-is-a-reserved-name-help/f8a398a4-b72c-48e3-82da-4f132c305e91">answers.microsoft.com/en-us/msoffice/forum/all/excel-history-is-a-reserved-name-help/f8a398a4-b72c-48e3-82da-4f132c305e91</a></p>
233
161
  <dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
234
-
235
162
  <dd>
236
-
237
-
238
163
  </dl>
239
164
  </section>
240
-
241
165
 
242
-
243
166
  <section class="attribute-method-details" class="method-section">
244
167
  <header>
245
168
  <h3>Attributes</h3>
246
169
  </header>
247
170
 
248
-
249
171
  <div id="attribute-i-is_template" class="method-detail">
250
172
  <div class="method-heading attribute-method-heading">
251
173
  <span class="method-name">is_template</span><span
@@ -254,11 +176,8 @@
254
176
 
255
177
  <div class="method-description">
256
178
 
257
-
258
-
259
179
  </div>
260
180
  </div>
261
-
262
181
  <div id="attribute-i-worksheets" class="method-detail">
263
182
  <div class="method-heading attribute-method-heading">
264
183
  <span class="method-name">worksheets</span><span
@@ -267,46 +186,32 @@
267
186
 
268
187
  <div class="method-description">
269
188
 
270
-
271
-
272
189
  </div>
273
190
  </div>
274
-
275
191
  </section>
276
-
277
192
 
278
-
193
+
279
194
  <section id="public-class-5Buntitled-5D-method-details" class="method-section">
280
195
  <header>
281
196
  <h3>Public Class Methods</h3>
282
197
  </header>
283
198
 
284
-
285
199
  <div id="method-c-new" class="method-detail ">
286
-
287
200
  <div class="method-heading">
288
201
  <span class="method-name">new</span><span
289
202
  class="method-args">(worksheets = [], src_file_path = nil, creator = nil, modifier = nil, created_at = nil, company = &#39;&#39;, application = APPLICATION, appversion = APPVERSION, date1904 = 0, is_template = false)</span>
290
-
291
203
  <span class="method-click-advice">click to toggle source</span>
292
-
293
204
  </div>
294
-
295
205
 
296
206
  <div class="method-description">
297
207
 
298
-
299
-
300
-
301
208
  <div class="method-calls-super">
302
209
  Calls superclass method
303
210
  <a href="OOXMLObjectInstanceMethods.html#method-c-new"><code>RubyXL::OOXMLObjectInstanceMethods::new</code></a>
304
211
  </div>
305
-
306
212
 
307
-
308
213
  <div class="method-source-code" id="new-source">
309
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 440</span>
214
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 446</span>
310
215
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">worksheets</span> = [], <span class="ruby-identifier">src_file_path</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">creator</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">modifier</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">created_at</span> = <span class="ruby-keyword">nil</span>,
311
216
  <span class="ruby-identifier">company</span> = <span class="ruby-string">&#39;&#39;</span>, <span class="ruby-identifier">application</span> = <span class="ruby-constant">APPLICATION</span>, <span class="ruby-identifier">appversion</span> = <span class="ruby-constant">APPVERSION</span>, <span class="ruby-identifier">date1904</span> = <span class="ruby-value">0</span>,
312
217
  <span class="ruby-identifier">is_template</span> = <span class="ruby-keyword">false</span>)
@@ -337,43 +242,30 @@
337
242
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_template</span> = <span class="ruby-identifier">is_template</span>
338
243
  <span class="ruby-keyword">end</span></pre>
339
244
  </div>
340
-
341
245
  </div>
342
246
 
343
-
344
247
 
345
-
346
248
  </div>
347
249
 
348
-
349
250
  </section>
350
-
251
+
351
252
  <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
352
253
  <header>
353
254
  <h3>Public Instance Methods</h3>
354
255
  </header>
355
256
 
356
-
357
257
  <div id="method-i-5B-5D" class="method-detail ">
358
-
359
258
  <div class="method-heading">
360
259
  <span class="method-name">[]</span><span
361
260
  class="method-args">(ind)</span>
362
-
363
261
  <span class="method-click-advice">click to toggle source</span>
364
-
365
262
  </div>
366
-
367
263
 
368
264
  <div class="method-description">
369
-
370
265
  <p>Finds worksheet by its name or numerical index</p>
371
-
372
-
373
266
 
374
-
375
267
  <div class="method-source-code" id="5B-5D-source">
376
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 473</span>
268
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 479</span>
377
269
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]</span>(<span class="ruby-identifier">ind</span>)
378
270
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
379
271
  <span class="ruby-keyword">when</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>[<span class="ruby-identifier">ind</span>]
@@ -381,37 +273,25 @@
381
273
  <span class="ruby-keyword">end</span>
382
274
  <span class="ruby-keyword">end</span></pre>
383
275
  </div>
384
-
385
276
  </div>
386
277
 
387
-
388
278
 
389
-
390
279
  </div>
391
280
 
392
-
393
281
  <div id="method-i-add_worksheet" class="method-detail ">
394
-
395
282
  <div class="method-heading">
396
283
  <span class="method-name">add_worksheet</span><span
397
284
  class="method-args">(name = nil)</span>
398
-
399
285
  <span class="method-click-advice">click to toggle source</span>
400
-
401
286
  </div>
402
-
403
287
 
404
288
  <div class="method-description">
405
-
406
289
  <p>Create new simple worksheet and add it to the workbook worksheets</p>
407
290
 
408
291
  <p>@param [String] The name for the new worksheet</p>
409
-
410
-
411
292
 
412
-
413
293
  <div class="method-source-code" id="add_worksheet-source">
414
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 483</span>
294
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 489</span>
415
295
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_worksheet</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
416
296
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
417
297
  <span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
@@ -426,169 +306,109 @@
426
306
  <span class="ruby-identifier">new_worksheet</span>
427
307
  <span class="ruby-keyword">end</span></pre>
428
308
  </div>
429
-
430
309
  </div>
431
310
 
432
-
433
311
 
434
-
435
312
  </div>
436
313
 
437
-
438
314
  <div id="method-i-application" class="method-detail ">
439
-
440
315
  <div class="method-heading">
441
316
  <span class="method-name">application</span><span
442
317
  class="method-args">()</span>
443
-
444
318
  <span class="method-click-advice">click to toggle source</span>
445
-
446
319
  </div>
447
-
448
320
 
449
321
  <div class="method-description">
450
322
 
451
-
452
-
453
-
454
323
 
455
-
456
324
  <div class="method-source-code" id="application-source">
457
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 522</span>
325
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 528</span>
458
326
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application</span>
459
327
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span>
460
328
  <span class="ruby-keyword">end</span></pre>
461
329
  </div>
462
-
463
330
  </div>
464
331
 
465
-
466
332
 
467
-
468
333
  </div>
469
334
 
470
-
471
335
  <div id="method-i-application-3D" class="method-detail ">
472
-
473
336
  <div class="method-heading">
474
337
  <span class="method-name">application=</span><span
475
338
  class="method-args">(v)</span>
476
-
477
339
  <span class="method-click-advice">click to toggle source</span>
478
-
479
340
  </div>
480
-
481
341
 
482
342
  <div class="method-description">
483
343
 
484
-
485
-
486
-
487
344
 
488
-
489
345
  <div class="method-source-code" id="application-3D-source">
490
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 526</span>
346
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 532</span>
491
347
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application=</span>(<span class="ruby-identifier">v</span>)
492
348
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
493
349
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
494
350
  <span class="ruby-keyword">end</span></pre>
495
351
  </div>
496
-
497
352
  </div>
498
353
 
499
-
500
354
 
501
-
502
355
  </div>
503
356
 
504
-
505
357
  <div id="method-i-appversion" class="method-detail ">
506
-
507
358
  <div class="method-heading">
508
359
  <span class="method-name">appversion</span><span
509
360
  class="method-args">()</span>
510
-
511
361
  <span class="method-click-advice">click to toggle source</span>
512
-
513
362
  </div>
514
-
515
363
 
516
364
  <div class="method-description">
517
365
 
518
-
519
-
520
-
521
366
 
522
-
523
367
  <div class="method-source-code" id="appversion-source">
524
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 531</span>
368
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 537</span>
525
369
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion</span>
526
370
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span>.<span class="ruby-identifier">value</span>
527
371
  <span class="ruby-keyword">end</span></pre>
528
372
  </div>
529
-
530
373
  </div>
531
374
 
532
-
533
375
 
534
-
535
376
  </div>
536
377
 
537
-
538
378
  <div id="method-i-appversion-3D" class="method-detail ">
539
-
540
379
  <div class="method-heading">
541
380
  <span class="method-name">appversion=</span><span
542
381
  class="method-args">(v)</span>
543
-
544
382
  <span class="method-click-advice">click to toggle source</span>
545
-
546
383
  </div>
547
-
548
384
 
549
385
  <div class="method-description">
550
386
 
551
-
552
-
553
-
554
387
 
555
-
556
388
  <div class="method-source-code" id="appversion-3D-source">
557
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 535</span>
389
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 541</span>
558
390
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion=</span>(<span class="ruby-identifier">v</span>)
559
391
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
560
392
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
561
393
  <span class="ruby-keyword">end</span></pre>
562
394
  </div>
563
-
564
395
  </div>
565
396
 
566
-
567
397
 
568
-
569
398
  </div>
570
399
 
571
-
572
400
  <div id="method-i-before_write_xml" class="method-detail ">
573
-
574
401
  <div class="method-heading">
575
402
  <span class="method-name">before_write_xml</span><span
576
403
  class="method-args">()</span>
577
-
578
404
  <span class="method-click-advice">click to toggle source</span>
579
-
580
405
  </div>
581
-
582
406
 
583
407
  <div class="method-description">
584
408
 
585
-
586
-
587
-
588
409
 
589
-
590
410
  <div class="method-source-code" id="before_write_xml-source">
591
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 369</span>
411
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 368</span>
592
412
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
593
413
  <span class="ruby-identifier">max_sheet_id</span> = <span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">collect</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:sheet_id</span>).<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">max</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
594
414
 
@@ -598,6 +418,7 @@
598
418
  <span class="ruby-identifier">rel</span> = <span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">find_by_target</span>(<span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">xlsx_path</span>)
599
419
 
600
420
  <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Worksheet name &#39;#{sheet.sheet_name}&#39; contains forbidden characters&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">SHEET_NAME_FORBIDDEN_CHARS</span>
421
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Worksheet name &#39;#{sheet.sheet_name}&#39; is forbidden&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">SHEET_NAME_FORBIDDEN_NAMES</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span>)
601
422
 
602
423
  <span class="ruby-identifier">sheets</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Sheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:name</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">30</span>], <span class="ruby-comment"># Max sheet name length is 31 char</span>
603
424
  <span class="ruby-value">:sheet_id</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_id</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">max_sheet_id</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>),
@@ -608,100 +429,64 @@
608
429
  <span class="ruby-keyword">true</span>
609
430
  <span class="ruby-keyword">end</span></pre>
610
431
  </div>
611
-
612
432
  </div>
613
433
 
614
-
615
434
 
616
-
617
435
  </div>
618
436
 
619
-
620
437
  <div id="method-i-company" class="method-detail ">
621
-
622
438
  <div class="method-heading">
623
439
  <span class="method-name">company</span><span
624
440
  class="method-args">()</span>
625
-
626
441
  <span class="method-click-advice">click to toggle source</span>
627
-
628
442
  </div>
629
-
630
443
 
631
444
  <div class="method-description">
632
445
 
633
-
634
-
635
-
636
446
 
637
-
638
447
  <div class="method-source-code" id="company-source">
639
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 513</span>
448
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 519</span>
640
449
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company</span>
641
450
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span>
642
451
  <span class="ruby-keyword">end</span></pre>
643
452
  </div>
644
-
645
453
  </div>
646
454
 
647
-
648
455
 
649
-
650
456
  </div>
651
457
 
652
-
653
458
  <div id="method-i-company-3D" class="method-detail ">
654
-
655
459
  <div class="method-heading">
656
460
  <span class="method-name">company=</span><span
657
461
  class="method-args">(v)</span>
658
-
659
462
  <span class="method-click-advice">click to toggle source</span>
660
-
661
463
  </div>
662
-
663
464
 
664
465
  <div class="method-description">
665
466
 
666
-
667
-
668
-
669
467
 
670
-
671
468
  <div class="method-source-code" id="company-3D-source">
672
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 517</span>
469
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 523</span>
673
470
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company=</span>(<span class="ruby-identifier">v</span>)
674
471
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
675
472
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
676
473
  <span class="ruby-keyword">end</span></pre>
677
474
  </div>
678
-
679
475
  </div>
680
476
 
681
-
682
477
 
683
-
684
478
  </div>
685
479
 
686
-
687
480
  <div id="method-i-content_type" class="method-detail ">
688
-
689
481
  <div class="method-heading">
690
482
  <span class="method-name">content_type</span><span
691
483
  class="method-args">()</span>
692
-
693
484
  <span class="method-click-advice">click to toggle source</span>
694
-
695
485
  </div>
696
-
697
486
 
698
487
  <div class="method-description">
699
488
 
700
-
701
-
702
-
703
489
 
704
-
705
490
  <div class="method-source-code" id="content_type-source">
706
491
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 313</span>
707
492
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">content_type</span>
@@ -711,468 +496,306 @@
711
496
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">content_type_name</span>)
712
497
  <span class="ruby-keyword">end</span></pre>
713
498
  </div>
714
-
715
499
  </div>
716
500
 
717
-
718
501
 
719
-
720
502
  </div>
721
503
 
722
-
723
504
  <div id="method-i-created_at" class="method-detail ">
724
-
725
505
  <div class="method-heading">
726
506
  <span class="method-name">created_at</span><span
727
507
  class="method-args">()</span>
728
-
729
508
  <span class="method-click-advice">click to toggle source</span>
730
-
731
509
  </div>
732
-
733
510
 
734
511
  <div class="method-description">
735
512
 
736
-
737
-
738
-
739
513
 
740
-
741
514
  <div class="method-source-code" id="created_at-source">
742
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 497</span>
515
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 503</span>
743
516
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at</span>
744
517
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
745
518
  <span class="ruby-keyword">end</span></pre>
746
519
  </div>
747
-
748
520
  </div>
749
521
 
750
-
751
522
 
752
-
753
523
  </div>
754
524
 
755
-
756
525
  <div id="method-i-created_at-3D" class="method-detail ">
757
-
758
526
  <div class="method-heading">
759
527
  <span class="method-name">created_at=</span><span
760
528
  class="method-args">(v)</span>
761
-
762
529
  <span class="method-click-advice">click to toggle source</span>
763
-
764
530
  </div>
765
-
766
531
 
767
532
  <div class="method-description">
768
533
 
769
-
770
-
771
-
772
534
 
773
-
774
535
  <div class="method-source-code" id="created_at-3D-source">
775
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 501</span>
536
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 507</span>
776
537
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at=</span>(<span class="ruby-identifier">v</span>)
777
538
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span> = <span class="ruby-identifier">v</span>
778
539
  <span class="ruby-keyword">end</span></pre>
779
540
  </div>
780
-
781
541
  </div>
782
542
 
783
-
784
543
 
785
-
786
544
  </div>
787
545
 
788
-
789
546
  <div id="method-i-creator" class="method-detail ">
790
-
791
547
  <div class="method-heading">
792
548
  <span class="method-name">creator</span><span
793
549
  class="method-args">()</span>
794
-
795
550
  <span class="method-click-advice">click to toggle source</span>
796
-
797
551
  </div>
798
-
799
552
 
800
553
  <div class="method-description">
801
554
 
802
-
803
-
804
-
805
555
 
806
-
807
556
  <div class="method-source-code" id="creator-source">
808
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 540</span>
557
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 546</span>
809
558
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator</span>
810
559
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
811
560
  <span class="ruby-keyword">end</span></pre>
812
561
  </div>
813
-
814
562
  </div>
815
563
 
816
-
817
564
 
818
-
819
565
  </div>
820
566
 
821
-
822
567
  <div id="method-i-creator-3D" class="method-detail ">
823
-
824
568
  <div class="method-heading">
825
569
  <span class="method-name">creator=</span><span
826
570
  class="method-args">(v)</span>
827
-
828
571
  <span class="method-click-advice">click to toggle source</span>
829
-
830
572
  </div>
831
-
832
573
 
833
574
  <div class="method-description">
834
575
 
835
-
836
-
837
-
838
576
 
839
-
840
577
  <div class="method-source-code" id="creator-3D-source">
841
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 544</span>
578
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 550</span>
842
579
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator=</span>(<span class="ruby-identifier">v</span>)
843
580
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span> = <span class="ruby-identifier">v</span>
844
581
  <span class="ruby-keyword">end</span></pre>
845
582
  </div>
846
-
847
583
  </div>
848
584
 
849
-
850
585
 
851
-
852
586
  </div>
853
587
 
854
-
855
588
  <div id="method-i-date1904" class="method-detail ">
856
-
857
589
  <div class="method-heading">
858
590
  <span class="method-name">date1904</span><span
859
591
  class="method-args">()</span>
860
-
861
592
  <span class="method-click-advice">click to toggle source</span>
862
-
863
593
  </div>
864
-
865
594
 
866
595
  <div class="method-description">
867
596
 
868
-
869
-
870
-
871
597
 
872
-
873
598
  <div class="method-source-code" id="date1904-source">
874
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 556</span>
599
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 562</span>
875
600
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904</span>
876
601
  <span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
877
602
  <span class="ruby-keyword">end</span></pre>
878
603
  </div>
879
-
880
604
  </div>
881
605
 
882
-
883
606
 
884
-
885
607
  </div>
886
608
 
887
-
888
609
  <div id="method-i-date1904-3D" class="method-detail ">
889
-
890
610
  <div class="method-heading">
891
611
  <span class="method-name">date1904=</span><span
892
612
  class="method-args">(v)</span>
893
-
894
613
  <span class="method-click-advice">click to toggle source</span>
895
-
896
614
  </div>
897
-
898
615
 
899
616
  <div class="method-description">
900
617
 
901
-
902
-
903
-
904
618
 
905
-
906
619
  <div class="method-source-code" id="date1904-3D-source">
907
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 560</span>
620
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 566</span>
908
621
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904=</span>(<span class="ruby-identifier">v</span>)
909
622
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookProperties</span>.<span class="ruby-identifier">new</span>
910
623
  <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
911
624
  <span class="ruby-keyword">end</span></pre>
912
625
  </div>
913
-
914
626
  </div>
915
627
 
916
-
917
628
 
918
-
919
629
  </div>
920
630
 
921
-
922
631
  <div id="method-i-date_to_num" class="method-detail ">
923
-
924
632
  <div class="method-heading">
925
633
  <span class="method-name">date_to_num</span><span
926
634
  class="method-args">(date)</span>
927
-
928
635
  <span class="method-click-advice">click to toggle source</span>
929
-
930
636
  </div>
931
-
932
637
 
933
638
  <div class="method-description">
934
639
 
935
-
936
-
937
-
938
640
 
939
-
940
641
  <div class="method-source-code" id="date_to_num-source">
941
642
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 422</span>
942
643
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date_to_num</span>(<span class="ruby-identifier">date</span>)
943
- <span class="ruby-identifier">date</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>().<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
644
+ <span class="ruby-keyword">case</span> <span class="ruby-identifier">date</span>
645
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">DateTime</span> <span class="ruby-keyword">then</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
646
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Time</span> <span class="ruby-keyword">then</span> ((<span class="ruby-identifier">date</span>.<span class="ruby-identifier">to_r</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">to_r</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">to_f</span>
647
+ <span class="ruby-keyword">end</span>
944
648
  <span class="ruby-keyword">end</span></pre>
945
649
  </div>
946
-
947
650
  </div>
948
651
 
949
-
950
652
 
951
-
952
653
  </div>
953
654
 
954
-
955
655
  <div id="method-i-modified_at" class="method-detail ">
956
-
957
656
  <div class="method-heading">
958
657
  <span class="method-name">modified_at</span><span
959
658
  class="method-args">()</span>
960
-
961
659
  <span class="method-click-advice">click to toggle source</span>
962
-
963
660
  </div>
964
-
965
661
 
966
662
  <div class="method-description">
967
663
 
968
-
969
-
970
-
971
664
 
972
-
973
665
  <div class="method-source-code" id="modified_at-source">
974
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 505</span>
666
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 511</span>
975
667
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at</span>
976
668
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
977
669
  <span class="ruby-keyword">end</span></pre>
978
670
  </div>
979
-
980
671
  </div>
981
672
 
982
-
983
673
 
984
-
985
674
  </div>
986
675
 
987
-
988
676
  <div id="method-i-modified_at-3D" class="method-detail ">
989
-
990
677
  <div class="method-heading">
991
678
  <span class="method-name">modified_at=</span><span
992
679
  class="method-args">(v)</span>
993
-
994
680
  <span class="method-click-advice">click to toggle source</span>
995
-
996
681
  </div>
997
-
998
682
 
999
683
  <div class="method-description">
1000
684
 
1001
-
1002
-
1003
-
1004
685
 
1005
-
1006
686
  <div class="method-source-code" id="modified_at-3D-source">
1007
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 509</span>
687
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 515</span>
1008
688
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at=</span>(<span class="ruby-identifier">v</span>)
1009
689
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span> = <span class="ruby-identifier">v</span>
1010
690
  <span class="ruby-keyword">end</span></pre>
1011
691
  </div>
1012
-
1013
692
  </div>
1014
693
 
1015
-
1016
694
 
1017
-
1018
695
  </div>
1019
696
 
1020
-
1021
697
  <div id="method-i-modifier" class="method-detail ">
1022
-
1023
698
  <div class="method-heading">
1024
699
  <span class="method-name">modifier</span><span
1025
700
  class="method-args">()</span>
1026
-
1027
701
  <span class="method-click-advice">click to toggle source</span>
1028
-
1029
702
  </div>
1030
-
1031
703
 
1032
704
  <div class="method-description">
1033
705
 
1034
-
1035
-
1036
-
1037
706
 
1038
-
1039
707
  <div class="method-source-code" id="modifier-source">
1040
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 548</span>
708
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 554</span>
1041
709
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier</span>
1042
710
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
1043
711
  <span class="ruby-keyword">end</span></pre>
1044
712
  </div>
1045
-
1046
713
  </div>
1047
714
 
1048
-
1049
715
 
1050
-
1051
716
  </div>
1052
717
 
1053
-
1054
718
  <div id="method-i-modifier-3D" class="method-detail ">
1055
-
1056
719
  <div class="method-heading">
1057
720
  <span class="method-name">modifier=</span><span
1058
721
  class="method-args">(v)</span>
1059
-
1060
722
  <span class="method-click-advice">click to toggle source</span>
1061
-
1062
723
  </div>
1063
-
1064
724
 
1065
725
  <div class="method-description">
1066
726
 
1067
-
1068
-
1069
-
1070
727
 
1071
-
1072
728
  <div class="method-source-code" id="modifier-3D-source">
1073
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 552</span>
729
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 558</span>
1074
730
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier=</span>(<span class="ruby-identifier">v</span>)
1075
731
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">v</span>
1076
732
  <span class="ruby-keyword">end</span></pre>
1077
733
  </div>
1078
-
1079
734
  </div>
1080
735
 
1081
-
1082
736
 
1083
-
1084
737
  </div>
1085
738
 
1086
-
1087
739
  <div id="method-i-num_to_date" class="method-detail ">
1088
-
1089
740
  <div class="method-heading">
1090
741
  <span class="method-name">num_to_date</span><span
1091
742
  class="method-args">(num)</span>
1092
-
1093
743
  <span class="method-click-advice">click to toggle source</span>
1094
-
1095
744
  </div>
1096
-
1097
745
 
1098
746
  <div class="method-description">
1099
747
 
1100
-
1101
-
1102
-
1103
748
 
1104
-
1105
749
  <div class="method-source-code" id="num_to_date-source">
1106
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 426</span>
750
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 429</span>
1107
751
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">num_to_date</span>(<span class="ruby-identifier">num</span>)
752
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span>.<span class="ruby-identifier">nil?</span>
753
+
1108
754
  <span class="ruby-comment"># Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)</span>
1109
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&lt;</span> <span class="ruby-constant">MARCH_1_1900</span> <span class="ruby-keyword">then</span>
755
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&lt;</span> <span class="ruby-constant">MARCH_1_1900</span> <span class="ruby-keyword">then</span>
1110
756
  <span class="ruby-identifier">num</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
1111
757
  <span class="ruby-keyword">end</span>
1112
758
 
1113
- <span class="ruby-identifier">num</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">num</span>)
759
+ <span class="ruby-identifier">dateparts</span> = <span class="ruby-identifier">num</span>.<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
760
+ <span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">*</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">round</span>(<span class="ruby-value">6</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>)
1114
761
  <span class="ruby-keyword">end</span></pre>
1115
762
  </div>
1116
-
1117
763
  </div>
1118
764
 
1119
-
1120
765
 
1121
-
1122
766
  </div>
1123
767
 
1124
-
1125
768
  <div id="method-i-related_objects" class="method-detail ">
1126
-
1127
769
  <div class="method-heading">
1128
770
  <span class="method-name">related_objects</span><span
1129
771
  class="method-args">()</span>
1130
-
1131
772
  <span class="method-click-advice">click to toggle source</span>
1132
-
1133
773
  </div>
1134
-
1135
774
 
1136
775
  <div class="method-description">
1137
776
 
1138
-
1139
-
1140
-
1141
777
 
1142
-
1143
778
  <div class="method-source-code" id="related_objects-source">
1144
779
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 320</span>
1145
780
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">related_objects</span>
1146
781
  [ <span class="ruby-identifier">calculation_chain</span>, <span class="ruby-identifier">stylesheet</span>, <span class="ruby-identifier">theme</span>, <span class="ruby-identifier">shared_strings_container</span>, <span class="ruby-identifier">macros</span> ] <span class="ruby-operator">+</span> <span class="ruby-ivar">@worksheets</span>
1147
782
  <span class="ruby-keyword">end</span></pre>
1148
783
  </div>
1149
-
1150
784
  </div>
1151
785
 
1152
-
1153
786
 
1154
-
1155
787
  </div>
1156
788
 
1157
-
1158
789
  <div id="method-i-save" class="method-detail ">
1159
-
1160
790
  <div class="method-heading">
1161
791
  <span class="method-name">save</span><span
1162
792
  class="method-args">(dst_file_path = nil)</span>
1163
-
1164
793
  <span class="method-click-advice">click to toggle source</span>
1165
-
1166
794
  </div>
1167
-
1168
795
 
1169
796
  <div class="method-description">
1170
-
1171
797
  <p>Save the resulting XLSX file to the specified location</p>
1172
-
1173
-
1174
798
 
1175
-
1176
799
  <div class="method-source-code" id="save-source">
1177
800
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 398</span>
1178
801
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">save</span>(<span class="ruby-identifier">dst_file_path</span> = <span class="ruby-keyword">nil</span>)
@@ -1183,127 +806,87 @@
1183
806
  <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported).&quot;</span>
1184
807
  <span class="ruby-keyword">end</span>
1185
808
 
1186
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string">&quot;wb&quot;</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">output_file</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_stream</span>(<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>, <span class="ruby-identifier">output_file</span>) }
809
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string">&#39;wb&#39;</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">output_file</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_stream</span>(<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>, <span class="ruby-identifier">output_file</span>) }
1187
810
 
1188
811
  <span class="ruby-keyword">return</span> <span class="ruby-identifier">dst_file_path</span>
1189
812
  <span class="ruby-keyword">end</span></pre>
1190
813
  </div>
1191
-
1192
814
  </div>
1193
815
 
1194
-
1195
816
  <div class="aliases">
1196
817
  Also aliased as: <a href="Workbook.html#method-i-write">write</a>
1197
818
  </div>
1198
-
1199
819
 
1200
-
1201
820
  </div>
1202
821
 
1203
-
1204
822
  <div id="method-i-stream" class="method-detail ">
1205
-
1206
823
  <div class="method-heading">
1207
824
  <span class="method-name">stream</span><span
1208
825
  class="method-args">()</span>
1209
-
1210
826
  <span class="method-click-advice">click to toggle source</span>
1211
-
1212
827
  </div>
1213
-
1214
828
 
1215
829
  <div class="method-description">
1216
-
1217
830
  <p>Return the resulting XLSX file in a stream (useful for sending over HTTP)</p>
1218
-
1219
-
1220
831
 
1221
-
1222
832
  <div class="method-source-code" id="stream-source">
1223
833
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 393</span>
1224
834
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">stream</span>
1225
835
  <span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>
1226
836
  <span class="ruby-keyword">end</span></pre>
1227
837
  </div>
1228
-
1229
838
  </div>
1230
839
 
1231
-
1232
840
 
1233
-
1234
841
  </div>
1235
842
 
1236
-
1237
843
  <div id="method-i-write" class="method-detail method-alias">
1238
-
1239
844
  <div class="method-heading">
1240
845
  <span class="method-name">write</span><span
1241
846
  class="method-args">(dst_file_path = nil)</span>
1242
-
1243
847
  </div>
1244
-
1245
848
 
1246
849
  <div class="method-description">
1247
850
 
1248
-
1249
-
1250
-
1251
851
 
1252
-
1253
852
  </div>
1254
853
 
1255
-
1256
854
 
1257
-
1258
855
  <div class="aliases">
1259
856
  Alias for: <a href="Workbook.html#method-i-save">save</a>
1260
857
  </div>
1261
-
1262
858
  </div>
1263
859
 
1264
-
1265
860
  <div id="method-i-xlsx_path" class="method-detail ">
1266
-
1267
861
  <div class="method-heading">
1268
862
  <span class="method-name">xlsx_path</span><span
1269
863
  class="method-args">()</span>
1270
-
1271
864
  <span class="method-click-advice">click to toggle source</span>
1272
-
1273
865
  </div>
1274
-
1275
866
 
1276
867
  <div class="method-description">
1277
868
 
1278
-
1279
-
1280
-
1281
869
 
1282
-
1283
870
  <div class="method-source-code" id="xlsx_path-source">
1284
871
  <pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 388</span>
1285
872
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">xlsx_path</span>
1286
873
  <span class="ruby-constant">ROOT</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;workbook.xml&#39;</span>)
1287
874
  <span class="ruby-keyword">end</span></pre>
1288
875
  </div>
1289
-
1290
876
  </div>
1291
877
 
1292
-
1293
878
 
1294
-
1295
879
  </div>
1296
880
 
1297
-
1298
881
  </section>
1299
-
882
+
1300
883
  </section>
1301
884
  </main>
1302
885
 
1303
886
 
1304
887
  <footer id="validator-badges" role="contentinfo">
1305
888
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
1306
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.0.
889
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
1307
890
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1308
891
  </footer>
1309
892