rubyXL 3.3.22 → 3.4.25
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 +5 -5
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/Gemfile +9 -8
- data/Gemfile.lock +124 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +54 -18
- data/Rakefile +29 -29
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +3 -30
- data/lib/rubyXL/convenience_methods/cell.rb +276 -0
- data/lib/rubyXL/convenience_methods/color.rb +156 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +141 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +714 -0
- data/lib/rubyXL/convenience_methods.rb +5 -1045
- data/lib/rubyXL/objects/border.rb +2 -5
- data/lib/rubyXL/objects/calculation_chain.rb +4 -4
- data/lib/rubyXL/objects/cell_style.rb +9 -11
- data/lib/rubyXL/objects/chartsheet.rb +15 -19
- data/lib/rubyXL/objects/color.rb +7 -7
- data/lib/rubyXL/objects/column_range.rb +10 -13
- data/lib/rubyXL/objects/comments.rb +5 -8
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +3 -7
- data/lib/rubyXL/objects/content_types.rb +5 -8
- data/lib/rubyXL/objects/data_validation.rb +4 -4
- data/lib/rubyXL/objects/document_properties.rb +12 -16
- data/lib/rubyXL/objects/extensions.rb +19 -4
- data/lib/rubyXL/objects/external_links.rb +30 -8
- data/lib/rubyXL/objects/fill.rb +6 -9
- data/lib/rubyXL/objects/filters.rb +17 -19
- data/lib/rubyXL/objects/font.rb +4 -64
- data/lib/rubyXL/objects/formula.rb +4 -6
- data/lib/rubyXL/objects/ooxml_object.rb +25 -18
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/reference.rb +6 -8
- data/lib/rubyXL/objects/relationships.rb +13 -13
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +4 -7
- data/lib/rubyXL/objects/sheet_common.rb +5 -7
- data/lib/rubyXL/objects/sheet_data.rb +50 -16
- data/lib/rubyXL/objects/simple_types.rb +21 -1
- data/lib/rubyXL/objects/storage.rb +67 -43
- data/lib/rubyXL/objects/stylesheet.rb +22 -29
- data/lib/rubyXL/objects/text.rb +12 -14
- data/lib/rubyXL/objects/theme.rb +142 -126
- data/lib/rubyXL/objects/workbook.rb +172 -64
- data/lib/rubyXL/objects/worksheet.rb +143 -128
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +83 -78
- data/lib/rubyXL.rb +1 -1
- data/rdoc/README_rdoc.html +122 -114
- data/rdoc/RubyXL/AExtension.html +21 -60
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
- data/rdoc/RubyXL/ActiveX.html +154 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +13 -19
- data/rdoc/RubyXL/Alignment.html +13 -19
- data/rdoc/RubyXL/AlternateContent.html +12 -17
- data/rdoc/RubyXL/Authors.html +13 -19
- data/rdoc/RubyXL/AutoFilter.html +13 -19
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
- data/rdoc/RubyXL/BinaryImageFile.html +12 -25
- data/rdoc/RubyXL/BodyProperties.html +13 -19
- data/rdoc/RubyXL/BooleanNode.html +12 -17
- data/rdoc/RubyXL/BooleanValue.html +12 -17
- data/rdoc/RubyXL/Border.html +25 -84
- data/rdoc/RubyXL/BorderEdge.html +20 -52
- data/rdoc/RubyXL/Borders.html +19 -39
- data/rdoc/RubyXL/Break.html +13 -19
- data/rdoc/RubyXL/BreakList.html +13 -19
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
- data/rdoc/RubyXL/CT_Backdrop.html +13 -19
- data/rdoc/RubyXL/CT_Bevel.html +13 -19
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
- data/rdoc/RubyXL/CT_Blip.html +13 -19
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
- data/rdoc/RubyXL/CT_Camera.html +13 -19
- data/rdoc/RubyXL/CT_Color.html +13 -19
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
- data/rdoc/RubyXL/CT_DashStop.html +13 -19
- data/rdoc/RubyXL/CT_DashStopList.html +13 -19
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
- data/rdoc/RubyXL/CT_EffectList.html +13 -19
- data/rdoc/RubyXL/CT_EffectReference.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
- data/rdoc/RubyXL/CT_FillEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
- data/rdoc/RubyXL/CT_FlatText.html +13 -19
- data/rdoc/RubyXL/CT_FontCollection.html +13 -19
- data/rdoc/RubyXL/CT_FontReference.html +13 -19
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_GradientStop.html +13 -19
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
- data/rdoc/RubyXL/CT_HslColor.html +13 -19
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_LightRig.html +13 -19
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_Path2D.html +13 -19
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DList.html +13 -19
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_Point3D.html +13 -19
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CT_PresetColor.html +13 -19
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_Scene3D.html +13 -19
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
- data/rdoc/RubyXL/CT_Shape3D.html +13 -19
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
- data/rdoc/RubyXL/CT_SystemColor.html +13 -19
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextFont.html +13 -19
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_TintEffect.html +13 -19
- data/rdoc/RubyXL/CT_Transform2D.html +13 -19
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
- data/rdoc/RubyXL/CT_Vector3D.html +13 -19
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CalculationChain.html +17 -45
- data/rdoc/RubyXL/CalculationChainCell.html +13 -19
- data/rdoc/RubyXL/CalculationProperties.html +13 -19
- data/rdoc/RubyXL/Cell.html +145 -205
- data/rdoc/RubyXL/CellConvenienceMethods.html +255 -460
- data/rdoc/RubyXL/CellExt.html +13 -19
- data/rdoc/RubyXL/CellSmartTag.html +13 -19
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
- data/rdoc/RubyXL/CellSmartTags.html +13 -19
- data/rdoc/RubyXL/CellStyle.html +13 -19
- data/rdoc/RubyXL/CellStyleXFs.html +19 -39
- data/rdoc/RubyXL/CellStyles.html +19 -39
- data/rdoc/RubyXL/CellValue.html +18 -38
- data/rdoc/RubyXL/CellWatch.html +13 -19
- data/rdoc/RubyXL/CellWatches.html +13 -19
- data/rdoc/RubyXL/CellXFs.html +20 -42
- data/rdoc/RubyXL/ChartColorsFile.html +12 -25
- data/rdoc/RubyXL/ChartFile.html +19 -49
- data/rdoc/RubyXL/ChartStyleFile.html +12 -25
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
- data/rdoc/RubyXL/Chartsheet.html +20 -68
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
- data/rdoc/RubyXL/ChartsheetView.html +13 -19
- data/rdoc/RubyXL/ChartsheetViews.html +13 -19
- data/rdoc/RubyXL/Color.html +29 -40
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -19
- data/rdoc/RubyXL/ColorScale.html +13 -19
- data/rdoc/RubyXL/ColorSet.html +13 -19
- data/rdoc/RubyXL/Colors.html +13 -19
- data/rdoc/RubyXL/ColumnRange.html +23 -74
- data/rdoc/RubyXL/ColumnRanges.html +24 -83
- data/rdoc/RubyXL/Comment.html +13 -19
- data/rdoc/RubyXL/CommentList.html +13 -19
- data/rdoc/RubyXL/CommentsFile.html +18 -51
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +147 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
- data/rdoc/RubyXL/ContentTypes.html +25 -65
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
- data/rdoc/RubyXL/CorePropertiesFile.html +35 -171
- data/rdoc/RubyXL/CustomColor.html +13 -19
- data/rdoc/RubyXL/CustomColorList.html +13 -19
- data/rdoc/RubyXL/CustomFilter.html +13 -19
- data/rdoc/RubyXL/CustomFilters.html +13 -19
- data/rdoc/RubyXL/CustomGeometry.html +13 -19
- data/rdoc/RubyXL/CustomProperties.html +13 -19
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
- data/rdoc/RubyXL/CustomProperty.html +13 -19
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -19
- data/rdoc/RubyXL/CustomSheetViews.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
- data/rdoc/RubyXL/CustomXMLFile.html +12 -22
- data/rdoc/RubyXL/DXF.html +13 -19
- data/rdoc/RubyXL/DXFs.html +13 -19
- data/rdoc/RubyXL/DataBar.html +13 -19
- data/rdoc/RubyXL/DataConsolidate.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
- data/rdoc/RubyXL/DataType.html +11 -39
- data/rdoc/RubyXL/DataValidation.html +13 -19
- data/rdoc/RubyXL/DataValidations.html +13 -19
- data/rdoc/RubyXL/DateGroupItem.html +13 -19
- data/rdoc/RubyXL/DefinedName.html +13 -19
- data/rdoc/RubyXL/DefinedNameExt.html +13 -19
- data/rdoc/RubyXL/DefinedNames.html +13 -19
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
- data/rdoc/RubyXL/DocumentPropertiesFile.html +22 -68
- data/rdoc/RubyXL/DrawingFile.html +19 -49
- data/rdoc/RubyXL/DynamicFilter.html +13 -19
- data/rdoc/RubyXL/EmbeddedControl.html +13 -19
- data/rdoc/RubyXL/EmbeddedControls.html +13 -19
- data/rdoc/RubyXL/Extension.html +13 -19
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
- data/rdoc/RubyXL/Extents.html +13 -19
- data/rdoc/RubyXL/ExternalBook.html +13 -19
- data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
- data/rdoc/RubyXL/ExternalReference.html +13 -19
- data/rdoc/RubyXL/ExternalReferences.html +13 -19
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
- data/rdoc/RubyXL/FieldItem.html +13 -19
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
- data/rdoc/RubyXL/FileSharing.html +13 -19
- data/rdoc/RubyXL/FileVersion.html +13 -19
- data/rdoc/RubyXL/Fill.html +19 -39
- data/rdoc/RubyXL/Fills.html +19 -39
- data/rdoc/RubyXL/FilterContainer.html +13 -19
- data/rdoc/RubyXL/FloatNode.html +12 -17
- data/rdoc/RubyXL/FloatValue.html +12 -17
- data/rdoc/RubyXL/Font.html +20 -544
- data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
- data/rdoc/RubyXL/FontScheme.html +13 -19
- data/rdoc/RubyXL/Fonts.html +19 -39
- data/rdoc/RubyXL/Formula.html +13 -19
- data/rdoc/RubyXL/FunctionGroup.html +13 -19
- data/rdoc/RubyXL/FunctionGroups.html +13 -19
- data/rdoc/RubyXL/GenericStorageObject.html +22 -84
- data/rdoc/RubyXL/GradientFill.html +13 -19
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
- data/rdoc/RubyXL/Hyperlink.html +13 -19
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
- data/rdoc/RubyXL/Hyperlinks.html +13 -19
- data/rdoc/RubyXL/IconFilter.html +13 -19
- data/rdoc/RubyXL/IconSet.html +13 -19
- data/rdoc/RubyXL/IgnoredError.html +13 -19
- data/rdoc/RubyXL/IgnoredErrors.html +13 -19
- data/rdoc/RubyXL/IndexedColors.html +13 -19
- data/rdoc/RubyXL/InputCells.html +13 -19
- data/rdoc/RubyXL/IntegerNode.html +12 -17
- data/rdoc/RubyXL/IntegerValue.html +12 -17
- data/rdoc/RubyXL/LegacyCell.html +14 -66
- data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
- data/rdoc/RubyXL/MRUColors.html +13 -19
- data/rdoc/RubyXL/MacrosFile.html +12 -25
- data/rdoc/RubyXL/MergedCell.html +13 -19
- data/rdoc/RubyXL/MergedCells.html +13 -19
- data/rdoc/RubyXL/NumFmt.html +13 -19
- data/rdoc/RubyXL/NumberFormat.html +19 -39
- data/rdoc/RubyXL/NumberFormats.html +19 -45
- data/rdoc/RubyXL/OLEObject.html +13 -19
- data/rdoc/RubyXL/OLEObjectFile.html +12 -25
- data/rdoc/RubyXL/OLEObjects.html +13 -19
- data/rdoc/RubyXL/OLESize.html +13 -19
- data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
- data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
- data/rdoc/RubyXL/OOXMLObject.html +15 -25
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +92 -183
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +49 -185
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +48 -200
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -19
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- 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 +13 -19
- data/rdoc/RubyXL/PageMargins.html +13 -19
- data/rdoc/RubyXL/PageSetup.html +13 -19
- data/rdoc/RubyXL/PageSetupProperties.html +13 -19
- data/rdoc/RubyXL/Pane.html +13 -19
- data/rdoc/RubyXL/Parser.html +23 -56
- data/rdoc/RubyXL/PatternFill.html +13 -19
- data/rdoc/RubyXL/PhoneticProperties.html +13 -19
- data/rdoc/RubyXL/PhoneticRun.html +13 -19
- data/rdoc/RubyXL/PivotArea.html +13 -19
- data/rdoc/RubyXL/PivotCache.html +13 -19
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
- data/rdoc/RubyXL/PivotCaches.html +13 -19
- data/rdoc/RubyXL/PivotReference.html +13 -19
- data/rdoc/RubyXL/PivotReferences.html +13 -19
- data/rdoc/RubyXL/PivotTableFile.html +14 -30
- data/rdoc/RubyXL/PivotTableSelection.html +13 -19
- data/rdoc/RubyXL/PresetGeometry.html +13 -19
- data/rdoc/RubyXL/PrintOptions.html +13 -19
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
- data/rdoc/RubyXL/ProtectedRange.html +13 -19
- data/rdoc/RubyXL/ProtectedRanges.html +13 -19
- data/rdoc/RubyXL/Protection.html +13 -19
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +155 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -17
- data/rdoc/RubyXL/RawOOXML.html +21 -60
- data/rdoc/RubyXL/Reference.html +63 -228
- data/rdoc/RubyXL/Relationship.html +12 -17
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +14 -32
- data/rdoc/RubyXL/RelationshipSupport.html +26 -120
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +20 -39
- data/rdoc/RubyXL/RichTextRun.html +18 -38
- data/rdoc/RubyXL/Row.html +53 -152
- data/rdoc/RubyXL/RowExt.html +13 -19
- data/rdoc/RubyXL/RunProperties.html +13 -19
- data/rdoc/RubyXL/Scenario.html +13 -19
- data/rdoc/RubyXL/Scenarios.html +13 -19
- data/rdoc/RubyXL/Selection.html +19 -39
- data/rdoc/RubyXL/ShapeGuide.html +13 -19
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
- data/rdoc/RubyXL/SharedStringsTable.html +38 -147
- data/rdoc/RubyXL/Sheet.html +13 -19
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
- data/rdoc/RubyXL/SheetData.html +20 -53
- data/rdoc/RubyXL/SheetDataExt.html +13 -19
- data/rdoc/RubyXL/SheetDataSet.html +13 -19
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +13 -19
- data/rdoc/RubyXL/SheetNames.html +13 -19
- data/rdoc/RubyXL/Sheets.html +13 -19
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
- data/rdoc/RubyXL/SlicerFile.html +12 -25
- data/rdoc/RubyXL/SmartTagProperties.html +13 -19
- data/rdoc/RubyXL/SmartTagType.html +13 -19
- data/rdoc/RubyXL/SmartTagTypes.html +13 -19
- data/rdoc/RubyXL/SmartTags.html +13 -19
- data/rdoc/RubyXL/SortCondition.html +13 -19
- data/rdoc/RubyXL/SortState.html +13 -19
- data/rdoc/RubyXL/Sqref.html +20 -53
- data/rdoc/RubyXL/Stop.html +13 -19
- data/rdoc/RubyXL/StringNode.html +12 -17
- data/rdoc/RubyXL/StringNodeW3C.html +21 -54
- data/rdoc/RubyXL/StringValue.html +12 -17
- data/rdoc/RubyXL/Stylesheet.html +35 -117
- data/rdoc/RubyXL/TableFile.html +12 -25
- data/rdoc/RubyXL/TableParts.html +12 -17
- data/rdoc/RubyXL/TableStyle.html +13 -19
- data/rdoc/RubyXL/TableStyles.html +13 -19
- data/rdoc/RubyXL/Text.html +23 -67
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +57 -62
- data/rdoc/RubyXL/ThemeElements.html +13 -19
- data/rdoc/RubyXL/ThumbnailFile.html +12 -25
- data/rdoc/RubyXL/Top10.html +13 -19
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
- data/rdoc/RubyXL/Variant.html +13 -19
- data/rdoc/RubyXL/Vector.html +18 -38
- data/rdoc/RubyXL/VectorValue.html +12 -17
- data/rdoc/RubyXL/VisualProperties.html +13 -19
- data/rdoc/RubyXL/WebPublishObject.html +13 -19
- data/rdoc/RubyXL/WebPublishObjects.html +13 -19
- data/rdoc/RubyXL/WebPublishingItem.html +13 -19
- data/rdoc/RubyXL/WebPublishingItems.html +13 -19
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +487 -227
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +163 -871
- data/rdoc/RubyXL/WorkbookProperties.html +13 -19
- data/rdoc/RubyXL/WorkbookProtection.html +13 -19
- data/rdoc/RubyXL/WorkbookRoot.html +28 -114
- data/rdoc/RubyXL/WorkbookView.html +13 -19
- data/rdoc/RubyXL/WorkbookViews.html +13 -19
- data/rdoc/RubyXL/Worksheet.html +93 -121
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +299 -1109
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
- data/rdoc/RubyXL/WorksheetProperties.html +13 -19
- data/rdoc/RubyXL/WorksheetProtection.html +13 -19
- data/rdoc/RubyXL/WorksheetView.html +13 -19
- data/rdoc/RubyXL/WorksheetViews.html +13 -19
- data/rdoc/RubyXL/XF.html +13 -19
- data/rdoc/RubyXL.html +41 -296
- data/rdoc/created.rid +45 -38
- data/rdoc/css/fonts.css +6 -6
- data/rdoc/css/rdoc.css +55 -6
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/index.html +44 -363
- data/rdoc/js/darkfish.js +23 -100
- data/rdoc/js/navigation.js +4 -41
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +7 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +347 -75
- data/rubyXL.gemspec +78 -43
- data/spec/lib/cell_spec.rb +115 -4
- data/spec/lib/color_spec.rb +2 -1
- data/spec/lib/parser_spec.rb +24 -27
- data/spec/lib/reference_spec.rb +9 -3
- data/spec/lib/rgb_color_spec.rb +27 -0
- data/spec/lib/stylesheet_spec.rb +8 -11
- data/spec/lib/text_spec.rb +8 -4
- data/spec/lib/workbook_spec.rb +26 -5
- data/spec/lib/worksheet_spec.rb +873 -479
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +15 -15
- metadata +65 -10
- data/rdoc/js/jquery.js +0 -4
data/rdoc/RubyXL/Workbook.html
CHANGED
|
@@ -4,20 +4,23 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::Workbook - rubyXL 3.
|
|
7
|
+
<title>class RubyXL::Workbook - rubyXL 3.4.25</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
|
+
var index_rel_prefix = "../";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
|
-
<script src="../js/
|
|
14
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
15
19
|
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
22
|
|
|
19
23
|
|
|
20
|
-
|
|
21
24
|
<body id="top" role="document" class="class">
|
|
22
25
|
<nav role="navigation">
|
|
23
26
|
<div id="project-navigation">
|
|
@@ -54,61 +57,58 @@
|
|
|
54
57
|
|
|
55
58
|
<div id="class-metadata">
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
58
62
|
<h3>Parent</h3>
|
|
59
63
|
|
|
60
|
-
|
|
61
64
|
<p class="link"><a href="OOXMLTopLevelObject.html">RubyXL::OOXMLTopLevelObject</a>
|
|
62
|
-
|
|
63
65
|
</div>
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
|
|
68
|
+
<div id="includes-section" class="nav-section">
|
|
66
69
|
<h3>Included Modules</h3>
|
|
67
70
|
|
|
68
71
|
<ul class="link-list">
|
|
69
|
-
|
|
70
|
-
|
|
71
72
|
<li><a class="include" href="RelationshipSupport.html">RubyXL::RelationshipSupport</a>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
<li><span class="include">Enumerable</span>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<li><a class="include" href="WorkbookConvenienceMethods.html">RubyXL::WorkbookConvenienceMethods</a>
|
|
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
|
-
|
|
85
|
+
<li ><a href="#method-i-5B-5D">#[]</a>
|
|
86
|
+
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
|
87
|
+
<li ><a href="#method-i-application">#application</a>
|
|
88
|
+
<li ><a href="#method-i-application-3D">#application=</a>
|
|
89
|
+
<li ><a href="#method-i-appversion">#appversion</a>
|
|
90
|
+
<li ><a href="#method-i-appversion-3D">#appversion=</a>
|
|
94
91
|
<li ><a href="#method-i-before_write_xml">#before_write_xml</a>
|
|
95
|
-
|
|
92
|
+
<li ><a href="#method-i-company">#company</a>
|
|
93
|
+
<li ><a href="#method-i-company-3D">#company=</a>
|
|
96
94
|
<li ><a href="#method-i-content_type">#content_type</a>
|
|
97
|
-
|
|
95
|
+
<li ><a href="#method-i-created_at">#created_at</a>
|
|
96
|
+
<li ><a href="#method-i-created_at-3D">#created_at=</a>
|
|
97
|
+
<li ><a href="#method-i-creator">#creator</a>
|
|
98
|
+
<li ><a href="#method-i-creator-3D">#creator=</a>
|
|
99
|
+
<li ><a href="#method-i-date1904">#date1904</a>
|
|
100
|
+
<li ><a href="#method-i-date1904-3D">#date1904=</a>
|
|
98
101
|
<li ><a href="#method-i-date_to_num">#date_to_num</a>
|
|
99
|
-
|
|
102
|
+
<li ><a href="#method-i-modified_at">#modified_at</a>
|
|
103
|
+
<li ><a href="#method-i-modified_at-3D">#modified_at=</a>
|
|
104
|
+
<li ><a href="#method-i-modifier">#modifier</a>
|
|
105
|
+
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
|
100
106
|
<li ><a href="#method-i-num_to_date">#num_to_date</a>
|
|
101
|
-
|
|
102
107
|
<li ><a href="#method-i-related_objects">#related_objects</a>
|
|
103
|
-
|
|
104
108
|
<li ><a href="#method-i-save">#save</a>
|
|
105
|
-
|
|
106
109
|
<li ><a href="#method-i-stream">#stream</a>
|
|
107
|
-
|
|
108
110
|
<li ><a href="#method-i-write">#write</a>
|
|
109
|
-
|
|
110
111
|
<li ><a href="#method-i-xlsx_path">#xlsx_path</a>
|
|
111
|
-
|
|
112
112
|
</ul>
|
|
113
113
|
</div>
|
|
114
114
|
|
|
@@ -122,84 +122,62 @@
|
|
|
122
122
|
|
|
123
123
|
<section class="description">
|
|
124
124
|
|
|
125
|
-
<p><a
|
|
126
|
-
href="http://www.schemacentral.com/sc/ooxml/e-ssml_workbook.html">www.schemacentral.com/sc/ooxml/e-ssml_workbook.html</a></p>
|
|
125
|
+
<p><a href="http://www.datypic.com/sc/ooxml/e-ssml_workbook.html">www.datypic.com/sc/ooxml/e-ssml_workbook.html</a></p>
|
|
127
126
|
|
|
128
127
|
</section>
|
|
129
128
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
129
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
134
|
-
|
|
135
130
|
|
|
136
|
-
|
|
137
131
|
|
|
138
|
-
|
|
139
132
|
<section class="constants-list">
|
|
140
133
|
<header>
|
|
141
134
|
<h3>Constants</h3>
|
|
142
135
|
</header>
|
|
143
136
|
<dl>
|
|
144
|
-
|
|
145
137
|
<dt id="APPLICATION">APPLICATION
|
|
146
|
-
|
|
147
138
|
<dd>
|
|
148
|
-
|
|
149
|
-
|
|
150
139
|
<dt id="APPVERSION">APPVERSION
|
|
151
|
-
|
|
152
140
|
<dd>
|
|
153
|
-
|
|
154
|
-
|
|
155
141
|
<dt id="CONTENT_TYPE">CONTENT_TYPE
|
|
156
|
-
|
|
157
142
|
<dd>
|
|
158
|
-
|
|
159
|
-
|
|
143
|
+
<dt id="CONTENT_TYPE_TEMPLATE">CONTENT_TYPE_TEMPLATE
|
|
144
|
+
<dd>
|
|
145
|
+
<dt id="CONTENT_TYPE_TEMPLATE_WITH_MACROS">CONTENT_TYPE_TEMPLATE_WITH_MACROS
|
|
146
|
+
<dd>
|
|
160
147
|
<dt id="CONTENT_TYPE_WITH_MACROS">CONTENT_TYPE_WITH_MACROS
|
|
161
|
-
|
|
162
148
|
<dd>
|
|
163
|
-
|
|
164
|
-
|
|
165
149
|
<dt id="DATE1899">DATE1899
|
|
166
|
-
|
|
167
|
-
<dd><p>Subtracting one day to accomodate for erroneous 1900 leap year
|
|
168
|
-
compatibility only for 1900 based dates</p>
|
|
169
|
-
|
|
170
|
-
|
|
150
|
+
<dd><p>Subtracting one day to accomodate for erroneous 1900 leap year compatibility only for 1900 based dates</p>
|
|
171
151
|
<dt id="DATE1904">DATE1904
|
|
172
|
-
|
|
173
152
|
<dd>
|
|
174
|
-
|
|
175
|
-
|
|
176
153
|
<dt id="MARCH_1_1900">MARCH_1_1900
|
|
177
|
-
|
|
178
154
|
<dd>
|
|
179
|
-
|
|
180
|
-
|
|
181
155
|
<dt id="REL_TYPE">REL_TYPE
|
|
182
|
-
|
|
183
156
|
<dd>
|
|
184
|
-
|
|
185
|
-
|
|
186
157
|
<dt id="SHEET_NAME_FORBIDDEN_CHARS">SHEET_NAME_FORBIDDEN_CHARS
|
|
187
|
-
|
|
188
|
-
<
|
|
189
|
-
href="
|
|
190
|
-
|
|
191
|
-
|
|
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>
|
|
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>
|
|
161
|
+
<dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
|
|
162
|
+
<dd>
|
|
192
163
|
</dl>
|
|
193
164
|
</section>
|
|
194
|
-
|
|
195
165
|
|
|
196
|
-
|
|
197
166
|
<section class="attribute-method-details" class="method-section">
|
|
198
167
|
<header>
|
|
199
168
|
<h3>Attributes</h3>
|
|
200
169
|
</header>
|
|
201
170
|
|
|
202
|
-
|
|
171
|
+
<div id="attribute-i-is_template" class="method-detail">
|
|
172
|
+
<div class="method-heading attribute-method-heading">
|
|
173
|
+
<span class="method-name">is_template</span><span
|
|
174
|
+
class="attribute-access-type">[RW]</span>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<div class="method-description">
|
|
178
|
+
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
203
181
|
<div id="attribute-i-worksheets" class="method-detail">
|
|
204
182
|
<div class="method-heading attribute-method-heading">
|
|
205
183
|
<span class="method-name">worksheets</span><span
|
|
@@ -208,48 +186,35 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
208
186
|
|
|
209
187
|
<div class="method-description">
|
|
210
188
|
|
|
211
|
-
|
|
212
|
-
|
|
213
189
|
</div>
|
|
214
190
|
</div>
|
|
215
|
-
|
|
216
191
|
</section>
|
|
217
|
-
|
|
218
192
|
|
|
219
|
-
|
|
193
|
+
|
|
220
194
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
221
195
|
<header>
|
|
222
196
|
<h3>Public Class Methods</h3>
|
|
223
197
|
</header>
|
|
224
198
|
|
|
225
|
-
|
|
226
199
|
<div id="method-c-new" class="method-detail ">
|
|
227
|
-
|
|
228
200
|
<div class="method-heading">
|
|
229
201
|
<span class="method-name">new</span><span
|
|
230
|
-
class="method-args">(worksheets = [], src_file_path = nil, creator = nil, modifier = nil, created_at = nil, company =
|
|
231
|
-
|
|
202
|
+
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>
|
|
232
203
|
<span class="method-click-advice">click to toggle source</span>
|
|
233
|
-
|
|
234
204
|
</div>
|
|
235
|
-
|
|
236
205
|
|
|
237
206
|
<div class="method-description">
|
|
238
207
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
208
|
<div class="method-calls-super">
|
|
243
209
|
Calls superclass method
|
|
244
|
-
<a href="OOXMLObjectInstanceMethods.html#method-c-new">RubyXL::OOXMLObjectInstanceMethods
|
|
210
|
+
<a href="OOXMLObjectInstanceMethods.html#method-c-new"><code>RubyXL::OOXMLObjectInstanceMethods::new</code></a>
|
|
245
211
|
</div>
|
|
246
|
-
|
|
247
212
|
|
|
248
|
-
|
|
249
213
|
<div class="method-source-code" id="new-source">
|
|
250
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
251
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">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>,
|
|
252
|
-
<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
|
|
214
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 446</span>
|
|
215
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">worksheets</span> = [], <span class="ruby-identifier">src_file_path</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">creator</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">modifier</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">created_at</span> = <span class="ruby-keyword">nil</span>,
|
|
216
|
+
<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>,
|
|
217
|
+
<span class="ruby-identifier">is_template</span> = <span class="ruby-keyword">false</span>)
|
|
253
218
|
<span class="ruby-keyword">super</span>()
|
|
254
219
|
|
|
255
220
|
<span class="ruby-comment"># Order of sheets in the +worksheets+ array corresponds to the order of pages in Excel UI.</span>
|
|
@@ -274,46 +239,177 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
274
239
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">creator</span> = <span class="ruby-identifier">creator</span>
|
|
275
240
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">modifier</span>
|
|
276
241
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">date1904</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
242
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_template</span> = <span class="ruby-identifier">is_template</span>
|
|
277
243
|
<span class="ruby-keyword">end</span></pre>
|
|
278
244
|
</div>
|
|
279
|
-
|
|
280
245
|
</div>
|
|
281
246
|
|
|
282
|
-
|
|
283
247
|
|
|
284
|
-
|
|
285
248
|
</div>
|
|
286
249
|
|
|
287
|
-
|
|
288
250
|
</section>
|
|
289
|
-
|
|
251
|
+
|
|
290
252
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
291
253
|
<header>
|
|
292
254
|
<h3>Public Instance Methods</h3>
|
|
293
255
|
</header>
|
|
294
256
|
|
|
295
|
-
|
|
296
|
-
<div id="method-i-before_write_xml" class="method-detail ">
|
|
297
|
-
|
|
257
|
+
<div id="method-i-5B-5D" class="method-detail ">
|
|
298
258
|
<div class="method-heading">
|
|
299
|
-
<span class="method-name">
|
|
259
|
+
<span class="method-name">[]</span><span
|
|
260
|
+
class="method-args">(ind)</span>
|
|
261
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
262
|
+
</div>
|
|
263
|
+
|
|
264
|
+
<div class="method-description">
|
|
265
|
+
<p>Finds worksheet by its name or numerical index</p>
|
|
266
|
+
|
|
267
|
+
<div class="method-source-code" id="5B-5D-source">
|
|
268
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 479</span>
|
|
269
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]</span>(<span class="ruby-identifier">ind</span>)
|
|
270
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
|
271
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>[<span class="ruby-identifier">ind</span>]
|
|
272
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">ws</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ws</span>.<span class="ruby-identifier">sheet_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">ind</span> }
|
|
273
|
+
<span class="ruby-keyword">end</span>
|
|
274
|
+
<span class="ruby-keyword">end</span></pre>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<div id="method-i-add_worksheet" class="method-detail ">
|
|
282
|
+
<div class="method-heading">
|
|
283
|
+
<span class="method-name">add_worksheet</span><span
|
|
284
|
+
class="method-args">(name = nil)</span>
|
|
285
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
<div class="method-description">
|
|
289
|
+
<p>Create new simple worksheet and add it to the workbook worksheets</p>
|
|
290
|
+
|
|
291
|
+
<p>@param [String] The name for the new worksheet</p>
|
|
292
|
+
|
|
293
|
+
<div class="method-source-code" id="add_worksheet-source">
|
|
294
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 489</span>
|
|
295
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_worksheet</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
|
|
296
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
|
297
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
|
298
|
+
|
|
299
|
+
<span class="ruby-keyword">begin</span>
|
|
300
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-constant">SHEET_NAME_TEMPLATE</span> <span class="ruby-operator">%</span> (<span class="ruby-identifier">n</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>)
|
|
301
|
+
<span class="ruby-keyword">end</span> <span class="ruby-keyword">until</span> <span class="ruby-keyword">self</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">nil?</span>
|
|
302
|
+
<span class="ruby-keyword">end</span>
|
|
303
|
+
|
|
304
|
+
<span class="ruby-identifier">new_worksheet</span> = <span class="ruby-constant">Worksheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:workbook</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">self</span>, <span class="ruby-value">:sheet_name</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">name</span>)
|
|
305
|
+
<span class="ruby-identifier">worksheets</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">new_worksheet</span>
|
|
306
|
+
<span class="ruby-identifier">new_worksheet</span>
|
|
307
|
+
<span class="ruby-keyword">end</span></pre>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div id="method-i-application" class="method-detail ">
|
|
315
|
+
<div class="method-heading">
|
|
316
|
+
<span class="method-name">application</span><span
|
|
300
317
|
class="method-args">()</span>
|
|
301
|
-
|
|
302
318
|
<span class="method-click-advice">click to toggle source</span>
|
|
303
|
-
|
|
304
319
|
</div>
|
|
305
|
-
|
|
306
320
|
|
|
307
321
|
<div class="method-description">
|
|
308
322
|
|
|
323
|
+
|
|
324
|
+
<div class="method-source-code" id="application-source">
|
|
325
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 528</span>
|
|
326
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application</span>
|
|
327
|
+
<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-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span>
|
|
328
|
+
<span class="ruby-keyword">end</span></pre>
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
<div id="method-i-application-3D" class="method-detail ">
|
|
336
|
+
<div class="method-heading">
|
|
337
|
+
<span class="method-name">application=</span><span
|
|
338
|
+
class="method-args">(v)</span>
|
|
339
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
<div class="method-description">
|
|
309
343
|
|
|
344
|
+
|
|
345
|
+
<div class="method-source-code" id="application-3D-source">
|
|
346
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 532</span>
|
|
347
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application=</span>(<span class="ruby-identifier">v</span>)
|
|
348
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
|
349
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
|
350
|
+
<span class="ruby-keyword">end</span></pre>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
</div>
|
|
356
|
+
|
|
357
|
+
<div id="method-i-appversion" class="method-detail ">
|
|
358
|
+
<div class="method-heading">
|
|
359
|
+
<span class="method-name">appversion</span><span
|
|
360
|
+
class="method-args">()</span>
|
|
361
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div class="method-description">
|
|
310
365
|
|
|
366
|
+
|
|
367
|
+
<div class="method-source-code" id="appversion-source">
|
|
368
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 537</span>
|
|
369
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion</span>
|
|
370
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">&&</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>
|
|
371
|
+
<span class="ruby-keyword">end</span></pre>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<div id="method-i-appversion-3D" class="method-detail ">
|
|
379
|
+
<div class="method-heading">
|
|
380
|
+
<span class="method-name">appversion=</span><span
|
|
381
|
+
class="method-args">(v)</span>
|
|
382
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
<div class="method-description">
|
|
311
386
|
|
|
312
387
|
|
|
388
|
+
<div class="method-source-code" id="appversion-3D-source">
|
|
389
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 541</span>
|
|
390
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion=</span>(<span class="ruby-identifier">v</span>)
|
|
391
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
|
392
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
|
393
|
+
<span class="ruby-keyword">end</span></pre>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
</div>
|
|
399
|
+
|
|
400
|
+
<div id="method-i-before_write_xml" class="method-detail ">
|
|
401
|
+
<div class="method-heading">
|
|
402
|
+
<span class="method-name">before_write_xml</span><span
|
|
403
|
+
class="method-args">()</span>
|
|
404
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<div class="method-description">
|
|
313
408
|
|
|
409
|
+
|
|
314
410
|
<div class="method-source-code" id="before_write_xml-source">
|
|
315
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
316
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">before_write_xml</span>
|
|
411
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 368</span>
|
|
412
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
|
|
317
413
|
<span class="ruby-identifier">max_sheet_id</span> = <span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">collect</span>(<span class="ruby-operator">&</span><span class="ruby-value">:sheet_id</span>).<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">max</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
|
318
414
|
|
|
319
415
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sheets</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Sheets</span>.<span class="ruby-identifier">new</span>
|
|
@@ -322,311 +418,475 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
322
418
|
<span class="ruby-identifier">rel</span> = <span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">find_by_target</span>(<span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">xlsx_path</span>)
|
|
323
419
|
|
|
324
420
|
<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>
|
|
421
|
+
<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>)
|
|
325
422
|
|
|
326
|
-
<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>
|
|
327
|
-
<span class="ruby-value">:sheet_id</span>
|
|
328
|
-
<span class="ruby-value">:state</span>
|
|
329
|
-
<span class="ruby-value">:r_id</span>
|
|
423
|
+
<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>
|
|
424
|
+
<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>),
|
|
425
|
+
<span class="ruby-value">:state</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">state</span>,
|
|
426
|
+
<span class="ruby-value">:r_id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">rel</span>.<span class="ruby-identifier">id</span>)
|
|
330
427
|
}
|
|
331
428
|
|
|
332
429
|
<span class="ruby-keyword">true</span>
|
|
333
430
|
<span class="ruby-keyword">end</span></pre>
|
|
334
431
|
</div>
|
|
432
|
+
</div>
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
</div>
|
|
436
|
+
|
|
437
|
+
<div id="method-i-company" class="method-detail ">
|
|
438
|
+
<div class="method-heading">
|
|
439
|
+
<span class="method-name">company</span><span
|
|
440
|
+
class="method-args">()</span>
|
|
441
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
<div class="method-description">
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
<div class="method-source-code" id="company-source">
|
|
448
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 519</span>
|
|
449
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company</span>
|
|
450
|
+
<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-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span>
|
|
451
|
+
<span class="ruby-keyword">end</span></pre>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
</div>
|
|
457
|
+
|
|
458
|
+
<div id="method-i-company-3D" class="method-detail ">
|
|
459
|
+
<div class="method-heading">
|
|
460
|
+
<span class="method-name">company=</span><span
|
|
461
|
+
class="method-args">(v)</span>
|
|
462
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
463
|
+
</div>
|
|
464
|
+
|
|
465
|
+
<div class="method-description">
|
|
335
466
|
|
|
467
|
+
|
|
468
|
+
<div class="method-source-code" id="company-3D-source">
|
|
469
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 523</span>
|
|
470
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company=</span>(<span class="ruby-identifier">v</span>)
|
|
471
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
|
472
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
|
473
|
+
<span class="ruby-keyword">end</span></pre>
|
|
474
|
+
</div>
|
|
336
475
|
</div>
|
|
337
476
|
|
|
338
|
-
|
|
339
477
|
|
|
340
|
-
|
|
341
478
|
</div>
|
|
342
479
|
|
|
343
|
-
|
|
344
480
|
<div id="method-i-content_type" class="method-detail ">
|
|
345
|
-
|
|
346
481
|
<div class="method-heading">
|
|
347
482
|
<span class="method-name">content_type</span><span
|
|
348
483
|
class="method-args">()</span>
|
|
349
|
-
|
|
350
484
|
<span class="method-click-advice">click to toggle source</span>
|
|
485
|
+
</div>
|
|
486
|
+
|
|
487
|
+
<div class="method-description">
|
|
351
488
|
|
|
489
|
+
|
|
490
|
+
<div class="method-source-code" id="content_type-source">
|
|
491
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 313</span>
|
|
492
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">content_type</span>
|
|
493
|
+
<span class="ruby-identifier">content_type_name</span> = <span class="ruby-string">'CONTENT_TYPE'</span>
|
|
494
|
+
<span class="ruby-identifier">content_type_name</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'_TEMPLATE'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_template</span>
|
|
495
|
+
<span class="ruby-identifier">content_type_name</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'_WITH_MACROS'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">macros</span>
|
|
496
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">content_type_name</span>)
|
|
497
|
+
<span class="ruby-keyword">end</span></pre>
|
|
498
|
+
</div>
|
|
499
|
+
</div>
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
<div id="method-i-created_at" class="method-detail ">
|
|
505
|
+
<div class="method-heading">
|
|
506
|
+
<span class="method-name">created_at</span><span
|
|
507
|
+
class="method-args">()</span>
|
|
508
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
352
509
|
</div>
|
|
353
|
-
|
|
354
510
|
|
|
355
511
|
<div class="method-description">
|
|
356
512
|
|
|
513
|
+
|
|
514
|
+
<div class="method-source-code" id="created_at-source">
|
|
515
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 503</span>
|
|
516
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at</span>
|
|
517
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
|
|
518
|
+
<span class="ruby-keyword">end</span></pre>
|
|
519
|
+
</div>
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
<div id="method-i-created_at-3D" class="method-detail ">
|
|
526
|
+
<div class="method-heading">
|
|
527
|
+
<span class="method-name">created_at=</span><span
|
|
528
|
+
class="method-args">(v)</span>
|
|
529
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
530
|
+
</div>
|
|
531
|
+
|
|
532
|
+
<div class="method-description">
|
|
357
533
|
|
|
534
|
+
|
|
535
|
+
<div class="method-source-code" id="created_at-3D-source">
|
|
536
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 507</span>
|
|
537
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at=</span>(<span class="ruby-identifier">v</span>)
|
|
538
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span> = <span class="ruby-identifier">v</span>
|
|
539
|
+
<span class="ruby-keyword">end</span></pre>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
</div>
|
|
545
|
+
|
|
546
|
+
<div id="method-i-creator" class="method-detail ">
|
|
547
|
+
<div class="method-heading">
|
|
548
|
+
<span class="method-name">creator</span><span
|
|
549
|
+
class="method-args">()</span>
|
|
550
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
<div class="method-description">
|
|
358
554
|
|
|
555
|
+
|
|
556
|
+
<div class="method-source-code" id="creator-source">
|
|
557
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 546</span>
|
|
558
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator</span>
|
|
559
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
|
|
560
|
+
<span class="ruby-keyword">end</span></pre>
|
|
561
|
+
</div>
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
</div>
|
|
566
|
+
|
|
567
|
+
<div id="method-i-creator-3D" class="method-detail ">
|
|
568
|
+
<div class="method-heading">
|
|
569
|
+
<span class="method-name">creator=</span><span
|
|
570
|
+
class="method-args">(v)</span>
|
|
571
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
572
|
+
</div>
|
|
573
|
+
|
|
574
|
+
<div class="method-description">
|
|
359
575
|
|
|
360
576
|
|
|
577
|
+
<div class="method-source-code" id="creator-3D-source">
|
|
578
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 550</span>
|
|
579
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator=</span>(<span class="ruby-identifier">v</span>)
|
|
580
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span> = <span class="ruby-identifier">v</span>
|
|
581
|
+
<span class="ruby-keyword">end</span></pre>
|
|
582
|
+
</div>
|
|
583
|
+
</div>
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
</div>
|
|
587
|
+
|
|
588
|
+
<div id="method-i-date1904" class="method-detail ">
|
|
589
|
+
<div class="method-heading">
|
|
590
|
+
<span class="method-name">date1904</span><span
|
|
591
|
+
class="method-args">()</span>
|
|
592
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
593
|
+
</div>
|
|
594
|
+
|
|
595
|
+
<div class="method-description">
|
|
361
596
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
<span class="ruby-
|
|
365
|
-
|
|
597
|
+
|
|
598
|
+
<div class="method-source-code" id="date1904-source">
|
|
599
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 562</span>
|
|
600
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904</span>
|
|
601
|
+
<span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
|
|
366
602
|
<span class="ruby-keyword">end</span></pre>
|
|
367
603
|
</div>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
</div>
|
|
608
|
+
|
|
609
|
+
<div id="method-i-date1904-3D" class="method-detail ">
|
|
610
|
+
<div class="method-heading">
|
|
611
|
+
<span class="method-name">date1904=</span><span
|
|
612
|
+
class="method-args">(v)</span>
|
|
613
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
614
|
+
</div>
|
|
615
|
+
|
|
616
|
+
<div class="method-description">
|
|
368
617
|
|
|
618
|
+
|
|
619
|
+
<div class="method-source-code" id="date1904-3D-source">
|
|
620
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 566</span>
|
|
621
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904=</span>(<span class="ruby-identifier">v</span>)
|
|
622
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookProperties</span>.<span class="ruby-identifier">new</span>
|
|
623
|
+
<span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
|
|
624
|
+
<span class="ruby-keyword">end</span></pre>
|
|
625
|
+
</div>
|
|
369
626
|
</div>
|
|
370
627
|
|
|
371
|
-
|
|
372
628
|
|
|
373
|
-
|
|
374
629
|
</div>
|
|
375
630
|
|
|
376
|
-
|
|
377
631
|
<div id="method-i-date_to_num" class="method-detail ">
|
|
378
|
-
|
|
379
632
|
<div class="method-heading">
|
|
380
633
|
<span class="method-name">date_to_num</span><span
|
|
381
634
|
class="method-args">(date)</span>
|
|
382
|
-
|
|
383
635
|
<span class="method-click-advice">click to toggle source</span>
|
|
384
|
-
|
|
385
636
|
</div>
|
|
386
|
-
|
|
387
637
|
|
|
388
638
|
<div class="method-description">
|
|
389
639
|
|
|
640
|
+
|
|
641
|
+
<div class="method-source-code" id="date_to_num-source">
|
|
642
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 422</span>
|
|
643
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
|
644
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">date</span>
|
|
645
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">DateTime</span> <span class="ruby-keyword">then</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
|
|
646
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Time</span> <span class="ruby-keyword">then</span> ((<span class="ruby-identifier">date</span>.<span class="ruby-identifier">to_r</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">to_r</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">to_f</span>
|
|
647
|
+
<span class="ruby-keyword">end</span>
|
|
648
|
+
<span class="ruby-keyword">end</span></pre>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
</div>
|
|
654
|
+
|
|
655
|
+
<div id="method-i-modified_at" class="method-detail ">
|
|
656
|
+
<div class="method-heading">
|
|
657
|
+
<span class="method-name">modified_at</span><span
|
|
658
|
+
class="method-args">()</span>
|
|
659
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
660
|
+
</div>
|
|
661
|
+
|
|
662
|
+
<div class="method-description">
|
|
390
663
|
|
|
664
|
+
|
|
665
|
+
<div class="method-source-code" id="modified_at-source">
|
|
666
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 511</span>
|
|
667
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at</span>
|
|
668
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
|
669
|
+
<span class="ruby-keyword">end</span></pre>
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
</div>
|
|
675
|
+
|
|
676
|
+
<div id="method-i-modified_at-3D" class="method-detail ">
|
|
677
|
+
<div class="method-heading">
|
|
678
|
+
<span class="method-name">modified_at=</span><span
|
|
679
|
+
class="method-args">(v)</span>
|
|
680
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
681
|
+
</div>
|
|
682
|
+
|
|
683
|
+
<div class="method-description">
|
|
391
684
|
|
|
392
|
-
|
|
393
685
|
|
|
686
|
+
<div class="method-source-code" id="modified_at-3D-source">
|
|
687
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 515</span>
|
|
688
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at=</span>(<span class="ruby-identifier">v</span>)
|
|
689
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span> = <span class="ruby-identifier">v</span>
|
|
690
|
+
<span class="ruby-keyword">end</span></pre>
|
|
691
|
+
</div>
|
|
692
|
+
</div>
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
</div>
|
|
696
|
+
|
|
697
|
+
<div id="method-i-modifier" class="method-detail ">
|
|
698
|
+
<div class="method-heading">
|
|
699
|
+
<span class="method-name">modifier</span><span
|
|
700
|
+
class="method-args">()</span>
|
|
701
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
702
|
+
</div>
|
|
703
|
+
|
|
704
|
+
<div class="method-description">
|
|
394
705
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<span class="ruby-
|
|
398
|
-
|
|
706
|
+
|
|
707
|
+
<div class="method-source-code" id="modifier-source">
|
|
708
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 554</span>
|
|
709
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier</span>
|
|
710
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
|
399
711
|
<span class="ruby-keyword">end</span></pre>
|
|
400
712
|
</div>
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
</div>
|
|
717
|
+
|
|
718
|
+
<div id="method-i-modifier-3D" class="method-detail ">
|
|
719
|
+
<div class="method-heading">
|
|
720
|
+
<span class="method-name">modifier=</span><span
|
|
721
|
+
class="method-args">(v)</span>
|
|
722
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
723
|
+
</div>
|
|
724
|
+
|
|
725
|
+
<div class="method-description">
|
|
401
726
|
|
|
727
|
+
|
|
728
|
+
<div class="method-source-code" id="modifier-3D-source">
|
|
729
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 558</span>
|
|
730
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier=</span>(<span class="ruby-identifier">v</span>)
|
|
731
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">v</span>
|
|
732
|
+
<span class="ruby-keyword">end</span></pre>
|
|
733
|
+
</div>
|
|
402
734
|
</div>
|
|
403
735
|
|
|
404
|
-
|
|
405
736
|
|
|
406
|
-
|
|
407
737
|
</div>
|
|
408
738
|
|
|
409
|
-
|
|
410
739
|
<div id="method-i-num_to_date" class="method-detail ">
|
|
411
|
-
|
|
412
740
|
<div class="method-heading">
|
|
413
741
|
<span class="method-name">num_to_date</span><span
|
|
414
742
|
class="method-args">(num)</span>
|
|
415
|
-
|
|
416
743
|
<span class="method-click-advice">click to toggle source</span>
|
|
417
|
-
|
|
418
744
|
</div>
|
|
419
|
-
|
|
420
745
|
|
|
421
746
|
<div class="method-description">
|
|
422
747
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
748
|
|
|
427
|
-
|
|
428
749
|
<div class="method-source-code" id="num_to_date-source">
|
|
429
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
430
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
|
750
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 429</span>
|
|
751
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
|
752
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span>.<span class="ruby-identifier">nil?</span>
|
|
753
|
+
|
|
431
754
|
<span class="ruby-comment"># Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)</span>
|
|
432
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&
|
|
755
|
+
<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>
|
|
433
756
|
<span class="ruby-identifier">num</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
|
|
434
757
|
<span class="ruby-keyword">end</span>
|
|
435
758
|
|
|
436
|
-
<span class="ruby-identifier">
|
|
759
|
+
<span class="ruby-identifier">dateparts</span> = <span class="ruby-identifier">num</span>.<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
|
|
760
|
+
<span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">*</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">round</span>(<span class="ruby-value">6</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>)
|
|
437
761
|
<span class="ruby-keyword">end</span></pre>
|
|
438
762
|
</div>
|
|
439
|
-
|
|
440
763
|
</div>
|
|
441
764
|
|
|
442
|
-
|
|
443
765
|
|
|
444
|
-
|
|
445
766
|
</div>
|
|
446
767
|
|
|
447
|
-
|
|
448
768
|
<div id="method-i-related_objects" class="method-detail ">
|
|
449
|
-
|
|
450
769
|
<div class="method-heading">
|
|
451
770
|
<span class="method-name">related_objects</span><span
|
|
452
771
|
class="method-args">()</span>
|
|
453
|
-
|
|
454
772
|
<span class="method-click-advice">click to toggle source</span>
|
|
455
|
-
|
|
456
773
|
</div>
|
|
457
|
-
|
|
458
774
|
|
|
459
775
|
<div class="method-description">
|
|
460
776
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
777
|
|
|
465
|
-
|
|
466
778
|
<div class="method-source-code" id="related_objects-source">
|
|
467
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
468
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">related_objects</span>
|
|
779
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 320</span>
|
|
780
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">related_objects</span>
|
|
469
781
|
[ <span class="ruby-identifier">calculation_chain</span>, <span class="ruby-identifier">stylesheet</span>, <span class="ruby-identifier">theme</span>, <span class="ruby-identifier">shared_strings_container</span>, <span class="ruby-identifier">macros</span> ] <span class="ruby-operator">+</span> <span class="ruby-ivar">@worksheets</span>
|
|
470
782
|
<span class="ruby-keyword">end</span></pre>
|
|
471
783
|
</div>
|
|
472
|
-
|
|
473
784
|
</div>
|
|
474
785
|
|
|
475
|
-
|
|
476
786
|
|
|
477
|
-
|
|
478
787
|
</div>
|
|
479
788
|
|
|
480
|
-
|
|
481
789
|
<div id="method-i-save" class="method-detail ">
|
|
482
|
-
|
|
483
790
|
<div class="method-heading">
|
|
484
791
|
<span class="method-name">save</span><span
|
|
485
792
|
class="method-args">(dst_file_path = nil)</span>
|
|
486
|
-
|
|
487
793
|
<span class="method-click-advice">click to toggle source</span>
|
|
488
|
-
|
|
489
794
|
</div>
|
|
490
|
-
|
|
491
795
|
|
|
492
796
|
<div class="method-description">
|
|
493
|
-
|
|
494
797
|
<p>Save the resulting XLSX file to the specified location</p>
|
|
495
|
-
|
|
496
|
-
|
|
497
798
|
|
|
498
|
-
|
|
499
799
|
<div class="method-source-code" id="save-source">
|
|
500
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
501
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">dst_file_path</span> = <span class="ruby-keyword">nil</span>)
|
|
800
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 398</span>
|
|
801
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">save</span>(<span class="ruby-identifier">dst_file_path</span> = <span class="ruby-keyword">nil</span>)
|
|
502
802
|
<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>
|
|
503
803
|
|
|
504
804
|
<span class="ruby-identifier">extension</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">dst_file_path</span>)
|
|
505
|
-
<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>)
|
|
506
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unsupported extension: #{extension} (only .xlsx and .
|
|
805
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-node">%w{.xlsx .xlsm .xltx .xltm}</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">extension</span>.<span class="ruby-identifier">downcase</span>)
|
|
806
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported)."</span>
|
|
507
807
|
<span class="ruby-keyword">end</span>
|
|
508
808
|
|
|
509
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string"
|
|
809
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string">'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>) }
|
|
510
810
|
|
|
511
811
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">dst_file_path</span>
|
|
512
812
|
<span class="ruby-keyword">end</span></pre>
|
|
513
813
|
</div>
|
|
514
|
-
|
|
515
814
|
</div>
|
|
516
815
|
|
|
517
|
-
|
|
518
816
|
<div class="aliases">
|
|
519
817
|
Also aliased as: <a href="Workbook.html#method-i-write">write</a>
|
|
520
818
|
</div>
|
|
521
|
-
|
|
522
819
|
|
|
523
|
-
|
|
524
820
|
</div>
|
|
525
821
|
|
|
526
|
-
|
|
527
822
|
<div id="method-i-stream" class="method-detail ">
|
|
528
|
-
|
|
529
823
|
<div class="method-heading">
|
|
530
824
|
<span class="method-name">stream</span><span
|
|
531
825
|
class="method-args">()</span>
|
|
532
|
-
|
|
533
826
|
<span class="method-click-advice">click to toggle source</span>
|
|
534
|
-
|
|
535
827
|
</div>
|
|
536
|
-
|
|
537
828
|
|
|
538
829
|
<div class="method-description">
|
|
539
|
-
|
|
540
830
|
<p>Return the resulting XLSX file in a stream (useful for sending over HTTP)</p>
|
|
541
|
-
|
|
542
|
-
|
|
543
831
|
|
|
544
|
-
|
|
545
832
|
<div class="method-source-code" id="stream-source">
|
|
546
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
547
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stream</span>
|
|
833
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 393</span>
|
|
834
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">stream</span>
|
|
548
835
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>
|
|
549
836
|
<span class="ruby-keyword">end</span></pre>
|
|
550
837
|
</div>
|
|
551
|
-
|
|
552
838
|
</div>
|
|
553
839
|
|
|
554
|
-
|
|
555
840
|
|
|
556
|
-
|
|
557
841
|
</div>
|
|
558
842
|
|
|
559
|
-
|
|
560
843
|
<div id="method-i-write" class="method-detail method-alias">
|
|
561
|
-
|
|
562
844
|
<div class="method-heading">
|
|
563
845
|
<span class="method-name">write</span><span
|
|
564
846
|
class="method-args">(dst_file_path = nil)</span>
|
|
565
|
-
|
|
566
847
|
</div>
|
|
567
|
-
|
|
568
848
|
|
|
569
849
|
<div class="method-description">
|
|
570
850
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
851
|
|
|
575
|
-
|
|
576
852
|
</div>
|
|
577
853
|
|
|
578
|
-
|
|
579
854
|
|
|
580
|
-
|
|
581
855
|
<div class="aliases">
|
|
582
856
|
Alias for: <a href="Workbook.html#method-i-save">save</a>
|
|
583
857
|
</div>
|
|
584
|
-
|
|
585
858
|
</div>
|
|
586
859
|
|
|
587
|
-
|
|
588
860
|
<div id="method-i-xlsx_path" class="method-detail ">
|
|
589
|
-
|
|
590
861
|
<div class="method-heading">
|
|
591
862
|
<span class="method-name">xlsx_path</span><span
|
|
592
863
|
class="method-args">()</span>
|
|
593
|
-
|
|
594
864
|
<span class="method-click-advice">click to toggle source</span>
|
|
595
|
-
|
|
596
865
|
</div>
|
|
597
|
-
|
|
598
866
|
|
|
599
867
|
<div class="method-description">
|
|
600
868
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
869
|
|
|
605
|
-
|
|
606
870
|
<div class="method-source-code" id="xlsx_path-source">
|
|
607
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
608
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">xlsx_path</span>
|
|
871
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 388</span>
|
|
872
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">xlsx_path</span>
|
|
609
873
|
<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>)
|
|
610
874
|
<span class="ruby-keyword">end</span></pre>
|
|
611
875
|
</div>
|
|
612
|
-
|
|
613
876
|
</div>
|
|
614
877
|
|
|
615
|
-
|
|
616
878
|
|
|
617
|
-
|
|
618
879
|
</div>
|
|
619
880
|
|
|
620
|
-
|
|
621
881
|
</section>
|
|
622
|
-
|
|
882
|
+
|
|
623
883
|
</section>
|
|
624
884
|
</main>
|
|
625
885
|
|
|
626
886
|
|
|
627
887
|
<footer id="validator-badges" role="contentinfo">
|
|
628
|
-
<p><a href="
|
|
629
|
-
<p>Generated by <a href="
|
|
888
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
889
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
|
630
890
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
631
891
|
</footer>
|
|
632
892
|
|