rubyXL 3.2.3 → 3.2.4

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