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