rubyXL 3.4.5 → 3.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -1
- data/Gemfile +3 -3
- data/Gemfile.lock +76 -51
- data/LICENSE.txt +1 -1
- data/README.rdoc +10 -2
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods/cell.rb +11 -1
- data/lib/rubyXL/convenience_methods/color.rb +5 -3
- data/lib/rubyXL/convenience_methods/worksheet.rb +77 -0
- data/lib/rubyXL/objects/chartsheet.rb +1 -1
- data/lib/rubyXL/objects/data_validation.rb +2 -0
- data/lib/rubyXL/objects/document_properties.rb +2 -2
- data/lib/rubyXL/objects/external_links.rb +25 -1
- data/lib/rubyXL/objects/ooxml_object.rb +13 -1
- data/lib/rubyXL/objects/relationships.rb +1 -1
- data/lib/rubyXL/objects/sheet_data.rb +11 -4
- data/lib/rubyXL/objects/storage.rb +1 -0
- data/lib/rubyXL/objects/text.rb +1 -1
- data/lib/rubyXL/objects/theme.rb +1 -1
- data/lib/rubyXL/objects/workbook.rb +24 -10
- data/lib/rubyXL/objects/worksheet.rb +7 -7
- data/lib/rubyXL/worksheet.rb +2 -0
- data/rdoc/README_rdoc.html +22 -10
- data/rdoc/RubyXL/AExtension.html +14 -51
- data/rdoc/RubyXL/AExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/ActiveX.html +16 -42
- data/rdoc/RubyXL/ActiveXBinary.html +10 -19
- data/rdoc/RubyXL/AdjustHandleList.html +10 -14
- data/rdoc/RubyXL/Alignment.html +10 -14
- data/rdoc/RubyXL/AlternateContent.html +10 -14
- data/rdoc/RubyXL/Authors.html +10 -14
- data/rdoc/RubyXL/AutoFilter.html +10 -14
- data/rdoc/RubyXL/AutoFilterColumn.html +10 -14
- data/rdoc/RubyXL/BinaryImageFile.html +10 -22
- data/rdoc/RubyXL/BodyProperties.html +10 -14
- data/rdoc/RubyXL/BooleanNode.html +10 -14
- data/rdoc/RubyXL/BooleanValue.html +10 -14
- data/rdoc/RubyXL/Border.html +13 -70
- data/rdoc/RubyXL/BorderEdge.html +13 -44
- data/rdoc/RubyXL/Borders.html +13 -31
- data/rdoc/RubyXL/Break.html +10 -14
- data/rdoc/RubyXL/BreakList.html +10 -14
- data/rdoc/RubyXL/CT_AdjPoint2D.html +10 -14
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +10 -14
- data/rdoc/RubyXL/CT_Backdrop.html +10 -14
- data/rdoc/RubyXL/CT_Bevel.html +10 -14
- data/rdoc/RubyXL/CT_BiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_BlendEffect.html +10 -14
- data/rdoc/RubyXL/CT_Blip.html +10 -14
- data/rdoc/RubyXL/CT_BlipFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_BlurEffect.html +10 -14
- data/rdoc/RubyXL/CT_Camera.html +10 -14
- data/rdoc/RubyXL/CT_Color.html +10 -14
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +10 -14
- data/rdoc/RubyXL/CT_ColorMapping.html +10 -14
- data/rdoc/RubyXL/CT_ColorScheme.html +10 -14
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSite.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +10 -14
- data/rdoc/RubyXL/CT_DashStop.html +10 -14
- data/rdoc/RubyXL/CT_DashStopList.html +10 -14
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +10 -14
- data/rdoc/RubyXL/CT_DuotoneEffect.html +10 -14
- data/rdoc/RubyXL/CT_EffectContainer.html +10 -14
- data/rdoc/RubyXL/CT_EffectList.html +10 -14
- data/rdoc/RubyXL/CT_EffectReference.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleItem.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleList.html +10 -14
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +10 -14
- data/rdoc/RubyXL/CT_FillEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillStyleList.html +10 -14
- data/rdoc/RubyXL/CT_FlatText.html +10 -14
- data/rdoc/RubyXL/CT_FontCollection.html +10 -14
- data/rdoc/RubyXL/CT_FontReference.html +10 -14
- data/rdoc/RubyXL/CT_GeomGuideList.html +10 -14
- data/rdoc/RubyXL/CT_GlowEffect.html +10 -14
- data/rdoc/RubyXL/CT_GradientFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_GradientStop.html +10 -14
- data/rdoc/RubyXL/CT_GradientStopList.html +10 -14
- data/rdoc/RubyXL/CT_HSLEffect.html +10 -14
- data/rdoc/RubyXL/CT_HslColor.html +10 -14
- data/rdoc/RubyXL/CT_Hyperlink.html +10 -14
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_LightRig.html +10 -14
- data/rdoc/RubyXL/CT_LineEndProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineStyleList.html +10 -14
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_LuminanceEffect.html +10 -14
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +10 -14
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_Path2D.html +10 -14
- data/rdoc/RubyXL/CT_Path2DArcTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DList.html +10 -14
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DTo.html +10 -14
- data/rdoc/RubyXL/CT_PathShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_PatternFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_Point3D.html +10 -14
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CT_PresetColor.html +10 -14
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +10 -14
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_PresetTextShape.html +10 -14
- data/rdoc/RubyXL/CT_ReflectionEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeRect.html +10 -14
- data/rdoc/RubyXL/CT_SRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_ScRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_Scene3D.html +10 -14
- data/rdoc/RubyXL/CT_SchemeColor.html +10 -14
- data/rdoc/RubyXL/CT_Shape3D.html +10 -14
- data/rdoc/RubyXL/CT_ShapeStyle.html +10 -14
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +10 -14
- data/rdoc/RubyXL/CT_SphereCoords.html +10 -14
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrix.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +10 -14
- data/rdoc/RubyXL/CT_SupplementalFont.html +10 -14
- data/rdoc/RubyXL/CT_SystemColor.html +10 -14
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextBlipBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextFont.html +10 -14
- data/rdoc/RubyXL/CT_TextListStyle.html +10 -14
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +10 -14
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextSpacing.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStop.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStopList.html +10 -14
- data/rdoc/RubyXL/CT_TileInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_TintEffect.html +10 -14
- data/rdoc/RubyXL/CT_Transform2D.html +10 -14
- data/rdoc/RubyXL/CT_TransformEffect.html +10 -14
- data/rdoc/RubyXL/CT_Vector3D.html +10 -14
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CalculationChain.html +13 -39
- data/rdoc/RubyXL/CalculationChainCell.html +10 -14
- data/rdoc/RubyXL/CalculationProperties.html +10 -14
- data/rdoc/RubyXL/Cell.html +28 -221
- data/rdoc/RubyXL/CellConvenienceMethods.html +70 -475
- data/rdoc/RubyXL/CellExt.html +10 -14
- data/rdoc/RubyXL/CellSmartTag.html +10 -14
- data/rdoc/RubyXL/CellSmartTagProperty.html +10 -14
- data/rdoc/RubyXL/CellSmartTags.html +10 -14
- data/rdoc/RubyXL/CellStyle.html +10 -14
- data/rdoc/RubyXL/CellStyleXFs.html +13 -31
- data/rdoc/RubyXL/CellStyles.html +13 -31
- data/rdoc/RubyXL/CellValue.html +13 -31
- data/rdoc/RubyXL/CellWatch.html +10 -14
- data/rdoc/RubyXL/CellWatches.html +10 -14
- data/rdoc/RubyXL/CellXFs.html +13 -31
- data/rdoc/RubyXL/ChartColorsFile.html +10 -22
- data/rdoc/RubyXL/ChartFile.html +15 -44
- data/rdoc/RubyXL/ChartStyleFile.html +10 -22
- data/rdoc/RubyXL/ChartUserShapesFile.html +10 -22
- data/rdoc/RubyXL/Chartsheet.html +15 -61
- data/rdoc/RubyXL/ChartsheetPageSetup.html +10 -14
- data/rdoc/RubyXL/ChartsheetProperties.html +10 -14
- data/rdoc/RubyXL/ChartsheetProtection.html +10 -14
- data/rdoc/RubyXL/ChartsheetView.html +10 -14
- data/rdoc/RubyXL/ChartsheetViews.html +10 -14
- data/rdoc/RubyXL/Color.html +13 -36
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +15 -60
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +19 -76
- data/rdoc/RubyXL/ColorConvenienceClasses.html +8 -11
- data/rdoc/RubyXL/ColorConvenienceMethods.html +11 -28
- data/rdoc/RubyXL/ColorFilter.html +10 -14
- data/rdoc/RubyXL/ColorScale.html +10 -14
- data/rdoc/RubyXL/ColorSet.html +10 -14
- data/rdoc/RubyXL/Colors.html +10 -14
- data/rdoc/RubyXL/ColumnRange.html +13 -62
- data/rdoc/RubyXL/ColumnRanges.html +13 -70
- data/rdoc/RubyXL/Comment.html +10 -14
- data/rdoc/RubyXL/CommentList.html +10 -14
- data/rdoc/RubyXL/CommentsFile.html +13 -44
- data/rdoc/RubyXL/ConditionalFormatValue.html +10 -14
- data/rdoc/RubyXL/ConditionalFormatting.html +10 -14
- data/rdoc/RubyXL/ConditionalFormattingRule.html +10 -14
- data/rdoc/RubyXL/Connection.html +10 -14
- data/rdoc/RubyXL/ConnectionTable.html +10 -14
- data/rdoc/RubyXL/ConnectionTables.html +10 -14
- data/rdoc/RubyXL/ConnectionTextField.html +10 -14
- data/rdoc/RubyXL/ConnectionTextFields.html +10 -14
- data/rdoc/RubyXL/Connections.html +13 -39
- data/rdoc/RubyXL/ContentTypeDefault.html +10 -14
- data/rdoc/RubyXL/ContentTypeOverride.html +10 -14
- data/rdoc/RubyXL/ContentTypes.html +13 -52
- data/rdoc/RubyXL/ControlPropertiesFile.html +12 -19
- data/rdoc/RubyXL/CorePropertiesFile.html +15 -150
- data/rdoc/RubyXL/CustomColor.html +10 -14
- data/rdoc/RubyXL/CustomColorList.html +10 -14
- data/rdoc/RubyXL/CustomFilter.html +10 -14
- data/rdoc/RubyXL/CustomFilters.html +10 -14
- data/rdoc/RubyXL/CustomGeometry.html +10 -14
- data/rdoc/RubyXL/CustomProperties.html +10 -14
- data/rdoc/RubyXL/CustomPropertiesFile.html +10 -22
- data/rdoc/RubyXL/CustomProperty.html +10 -14
- data/rdoc/RubyXL/CustomPropertyFile.html +10 -22
- data/rdoc/RubyXL/CustomSheetView.html +10 -14
- data/rdoc/RubyXL/CustomSheetViews.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookView.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookViews.html +10 -14
- data/rdoc/RubyXL/CustomXMLFile.html +10 -19
- data/rdoc/RubyXL/DXF.html +10 -14
- data/rdoc/RubyXL/DXFs.html +10 -14
- data/rdoc/RubyXL/DataBar.html +10 -14
- data/rdoc/RubyXL/DataConsolidate.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReference.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReferences.html +10 -14
- data/rdoc/RubyXL/DataType.html +8 -34
- data/rdoc/RubyXL/DataValidation.html +10 -14
- data/rdoc/RubyXL/DataValidations.html +10 -14
- data/rdoc/RubyXL/DateGroupItem.html +10 -14
- data/rdoc/RubyXL/DefinedName.html +10 -14
- data/rdoc/RubyXL/DefinedNameExt.html +10 -14
- data/rdoc/RubyXL/DefinedNames.html +10 -14
- data/rdoc/RubyXL/DefinedNamesExt.html +10 -14
- data/rdoc/RubyXL/DocumentPropertiesFile.html +13 -57
- data/rdoc/RubyXL/DrawingFile.html +15 -44
- data/rdoc/RubyXL/DynamicFilter.html +10 -14
- data/rdoc/RubyXL/EmbeddedControl.html +10 -14
- data/rdoc/RubyXL/EmbeddedControls.html +10 -14
- data/rdoc/RubyXL/Extension.html +10 -14
- data/rdoc/RubyXL/ExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/Extents.html +10 -14
- data/rdoc/RubyXL/ExternalBook.html +10 -14
- data/rdoc/RubyXL/ExternalLinksFile.html +16 -45
- data/rdoc/RubyXL/ExternalReference.html +10 -14
- data/rdoc/RubyXL/ExternalReferences.html +10 -14
- data/rdoc/RubyXL/ExtraColorSchemeList.html +10 -14
- data/rdoc/RubyXL/FieldItem.html +10 -14
- data/rdoc/RubyXL/FileRecoveryProperties.html +10 -14
- data/rdoc/RubyXL/FileSharing.html +10 -14
- data/rdoc/RubyXL/FileVersion.html +10 -14
- data/rdoc/RubyXL/Fill.html +13 -31
- data/rdoc/RubyXL/Fills.html +13 -31
- data/rdoc/RubyXL/FilterContainer.html +10 -14
- data/rdoc/RubyXL/FloatNode.html +10 -14
- data/rdoc/RubyXL/FloatValue.html +10 -14
- data/rdoc/RubyXL/Font.html +13 -36
- data/rdoc/RubyXL/FontConvenienceMethods.html +11 -197
- data/rdoc/RubyXL/FontScheme.html +10 -14
- data/rdoc/RubyXL/Fonts.html +13 -31
- data/rdoc/RubyXL/Formula.html +10 -14
- data/rdoc/RubyXL/FunctionGroup.html +10 -14
- data/rdoc/RubyXL/FunctionGroups.html +10 -14
- data/rdoc/RubyXL/GenericStorageObject.html +14 -75
- data/rdoc/RubyXL/GradientFill.html +10 -14
- data/rdoc/RubyXL/HeaderFooterSettings.html +10 -14
- data/rdoc/RubyXL/Hyperlink.html +10 -14
- data/rdoc/RubyXL/HyperlinkRelFile.html +10 -19
- data/rdoc/RubyXL/Hyperlinks.html +10 -14
- data/rdoc/RubyXL/IconFilter.html +10 -14
- data/rdoc/RubyXL/IconSet.html +10 -14
- data/rdoc/RubyXL/IgnoredError.html +10 -14
- data/rdoc/RubyXL/IgnoredErrors.html +10 -14
- data/rdoc/RubyXL/IndexedColors.html +10 -14
- data/rdoc/RubyXL/InputCells.html +10 -14
- data/rdoc/RubyXL/IntegerNode.html +10 -14
- data/rdoc/RubyXL/IntegerValue.html +10 -14
- data/rdoc/RubyXL/LegacyCell.html +11 -28
- data/rdoc/RubyXL/LegacyWorksheet.html +16 -88
- data/rdoc/RubyXL/MRUColors.html +10 -14
- data/rdoc/RubyXL/MacrosFile.html +10 -22
- data/rdoc/RubyXL/MergedCell.html +10 -14
- data/rdoc/RubyXL/MergedCells.html +10 -14
- data/rdoc/RubyXL/NumFmt.html +10 -14
- data/rdoc/RubyXL/NumberFormat.html +13 -31
- data/rdoc/RubyXL/NumberFormats.html +13 -36
- data/rdoc/RubyXL/OLEObject.html +10 -14
- data/rdoc/RubyXL/OLEObjectFile.html +10 -22
- data/rdoc/RubyXL/OLEObjects.html +10 -14
- data/rdoc/RubyXL/OLESize.html +10 -14
- data/rdoc/RubyXL/OOXMLContainerObject.html +24 -116
- data/rdoc/RubyXL/OOXMLIgnored.html +14 -46
- data/rdoc/RubyXL/OOXMLObject.html +12 -19
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +39 -84
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +28 -141
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +15 -169
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -103
- data/rdoc/RubyXL/OdbcOleDbProperties.html +10 -14
- data/rdoc/RubyXL/Offset.html +10 -14
- data/rdoc/RubyXL/OlapProperties.html +10 -14
- 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 +10 -14
- data/rdoc/RubyXL/PageMargins.html +10 -14
- data/rdoc/RubyXL/PageSetup.html +10 -14
- data/rdoc/RubyXL/PageSetupProperties.html +10 -14
- data/rdoc/RubyXL/Pane.html +10 -14
- data/rdoc/RubyXL/Parser.html +13 -44
- data/rdoc/RubyXL/PatternFill.html +10 -14
- data/rdoc/RubyXL/PhoneticProperties.html +10 -14
- data/rdoc/RubyXL/PhoneticRun.html +10 -14
- data/rdoc/RubyXL/PivotArea.html +10 -14
- data/rdoc/RubyXL/PivotCache.html +10 -14
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +12 -27
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +10 -22
- data/rdoc/RubyXL/PivotCaches.html +10 -14
- data/rdoc/RubyXL/PivotReference.html +10 -14
- data/rdoc/RubyXL/PivotReferences.html +10 -14
- data/rdoc/RubyXL/PivotTableFile.html +12 -27
- data/rdoc/RubyXL/PivotTableSelection.html +10 -14
- data/rdoc/RubyXL/PresetGeometry.html +10 -14
- data/rdoc/RubyXL/PrintOptions.html +10 -14
- data/rdoc/RubyXL/PrinterSettingsFile.html +10 -22
- data/rdoc/RubyXL/ProtectedRange.html +10 -14
- data/rdoc/RubyXL/ProtectedRanges.html +10 -14
- data/rdoc/RubyXL/Protection.html +10 -14
- data/rdoc/RubyXL/QueryParameter.html +10 -14
- data/rdoc/RubyXL/QueryParameters.html +10 -14
- data/rdoc/RubyXL/QueryTable.html +15 -44
- data/rdoc/RubyXL/QueryTableDeletedField.html +10 -14
- data/rdoc/RubyXL/QueryTableDeletedFields.html +10 -14
- data/rdoc/RubyXL/QueryTableField.html +10 -14
- data/rdoc/RubyXL/QueryTableFields.html +10 -14
- data/rdoc/RubyXL/QueryTableRefresh.html +10 -14
- data/rdoc/RubyXL/RID.html +10 -14
- data/rdoc/RubyXL/RawOOXML.html +14 -51
- data/rdoc/RubyXL/Reference.html +14 -192
- data/rdoc/RubyXL/Relationship.html +10 -14
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +11 -28
- data/rdoc/RubyXL/RelationshipSupport.html +14 -108
- data/rdoc/RubyXL/RevisionPointer.html +10 -14
- data/rdoc/RubyXL/RichText.html +14 -32
- data/rdoc/RubyXL/RichTextRun.html +13 -31
- data/rdoc/RubyXL/Row.html +22 -154
- data/rdoc/RubyXL/RowExt.html +10 -14
- data/rdoc/RubyXL/RunProperties.html +10 -14
- data/rdoc/RubyXL/Scenario.html +10 -14
- data/rdoc/RubyXL/Scenarios.html +10 -14
- data/rdoc/RubyXL/Selection.html +13 -31
- data/rdoc/RubyXL/ShapeGuide.html +10 -14
- data/rdoc/RubyXL/ShapeTextRectangle.html +10 -14
- data/rdoc/RubyXL/SharedStringsTable.html +14 -121
- data/rdoc/RubyXL/Sheet.html +10 -14
- data/rdoc/RubyXL/SheetCalculationProperties.html +10 -14
- data/rdoc/RubyXL/SheetData.html +15 -46
- data/rdoc/RubyXL/SheetDataExt.html +10 -14
- data/rdoc/RubyXL/SheetDataSet.html +10 -14
- data/rdoc/RubyXL/SheetName.html +10 -14
- data/rdoc/RubyXL/SheetNames.html +10 -14
- data/rdoc/RubyXL/Sheets.html +10 -14
- data/rdoc/RubyXL/SlicerCacheFile.html +10 -22
- data/rdoc/RubyXL/SlicerFile.html +10 -22
- data/rdoc/RubyXL/SmartTagProperties.html +10 -14
- data/rdoc/RubyXL/SmartTagType.html +10 -14
- data/rdoc/RubyXL/SmartTagTypes.html +10 -14
- data/rdoc/RubyXL/SmartTags.html +10 -14
- data/rdoc/RubyXL/SortCondition.html +10 -14
- data/rdoc/RubyXL/SortState.html +10 -14
- data/rdoc/RubyXL/Sqref.html +14 -46
- data/rdoc/RubyXL/Stop.html +10 -14
- data/rdoc/RubyXL/StringNode.html +10 -14
- data/rdoc/RubyXL/StringNodeW3C.html +14 -46
- data/rdoc/RubyXL/StringValue.html +10 -14
- data/rdoc/RubyXL/Stylesheet.html +14 -94
- data/rdoc/RubyXL/TableFile.html +10 -22
- data/rdoc/RubyXL/TableParts.html +10 -14
- data/rdoc/RubyXL/TableStyle.html +10 -14
- data/rdoc/RubyXL/TableStyles.html +10 -14
- data/rdoc/RubyXL/Text.html +13 -52
- data/rdoc/RubyXL/TextImportSettings.html +10 -14
- data/rdoc/RubyXL/Theme.html +14 -67
- data/rdoc/RubyXL/ThemeElements.html +10 -14
- data/rdoc/RubyXL/ThumbnailFile.html +10 -22
- data/rdoc/RubyXL/Top10.html +10 -14
- data/rdoc/RubyXL/VMLDrawingFile.html +12 -27
- data/rdoc/RubyXL/Variant.html +10 -14
- data/rdoc/RubyXL/Vector.html +13 -31
- data/rdoc/RubyXL/VectorValue.html +10 -14
- data/rdoc/RubyXL/VisualProperties.html +10 -14
- data/rdoc/RubyXL/WebPublishObject.html +10 -14
- data/rdoc/RubyXL/WebPublishObjects.html +10 -14
- data/rdoc/RubyXL/WebPublishingItem.html +10 -14
- data/rdoc/RubyXL/WebPublishingItems.html +10 -14
- data/rdoc/RubyXL/WebPublishingProperties.html +10 -14
- data/rdoc/RubyXL/WebQueryProperties.html +10 -14
- data/rdoc/RubyXL/Workbook.html +76 -465
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +11 -223
- data/rdoc/RubyXL/WorkbookProperties.html +10 -14
- data/rdoc/RubyXL/WorkbookProtection.html +10 -14
- data/rdoc/RubyXL/WorkbookRoot.html +16 -101
- data/rdoc/RubyXL/WorkbookView.html +10 -14
- data/rdoc/RubyXL/WorkbookViews.html +10 -14
- data/rdoc/RubyXL/Worksheet.html +16 -132
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +171 -987
- data/rdoc/RubyXL/WorksheetDimensions.html +10 -14
- data/rdoc/RubyXL/WorksheetFormatProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProtection.html +10 -14
- data/rdoc/RubyXL/WorksheetView.html +10 -14
- data/rdoc/RubyXL/WorksheetViews.html +10 -14
- data/rdoc/RubyXL/XF.html +10 -14
- data/rdoc/RubyXL.html +11 -321
- data/rdoc/created.rid +26 -26
- data/rdoc/css/rdoc.css +55 -6
- data/rdoc/index.html +13 -390
- data/rdoc/js/darkfish.js +22 -99
- data/rdoc/js/navigation.js +4 -40
- 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 +6 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +33 -7
- data/rubyXL.gemspec +24 -31
- data/spec/lib/cell_spec.rb +44 -2
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/worksheet_spec.rb +301 -0
- metadata +12 -10
- data/rdoc/js/jquery.js +0 -4
data/rdoc/RubyXL/Cell.html
CHANGED
|
@@ -4,21 +4,23 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::Cell - rubyXL 3.4.
|
|
7
|
+
<title>class RubyXL::Cell - rubyXL 3.4.18</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
11
|
var index_rel_prefix = "../";
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<script src="../js/
|
|
15
|
-
<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>
|
|
16
19
|
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
<body id="top" role="document" class="class">
|
|
23
25
|
<nav role="navigation">
|
|
24
26
|
<div id="project-navigation">
|
|
@@ -55,61 +57,43 @@
|
|
|
55
57
|
|
|
56
58
|
<div id="class-metadata">
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
59
62
|
<h3>Parent</h3>
|
|
60
63
|
|
|
61
|
-
|
|
62
64
|
<p class="link"><a href="OOXMLObject.html">RubyXL::OOXMLObject</a>
|
|
63
|
-
|
|
64
65
|
</div>
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
|
|
68
|
+
<div id="includes-section" class="nav-section">
|
|
67
69
|
<h3>Included Modules</h3>
|
|
68
70
|
|
|
69
71
|
<ul class="link-list">
|
|
70
|
-
|
|
71
|
-
|
|
72
72
|
<li><a class="include" href="LegacyCell.html">RubyXL::LegacyCell</a>
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
</ul>
|
|
76
74
|
</div>
|
|
77
75
|
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
|
|
78
|
+
<!-- Method Quickref -->
|
|
80
79
|
<div id="method-list-section" class="nav-section">
|
|
81
80
|
<h3>Methods</h3>
|
|
82
81
|
|
|
83
82
|
<ul class="link-list" role="directory">
|
|
84
|
-
|
|
85
83
|
<li ><a href="#method-i-column">#column</a>
|
|
86
|
-
|
|
87
84
|
<li ><a href="#method-i-column-3D">#column=</a>
|
|
88
|
-
|
|
89
85
|
<li ><a href="#method-i-get_cell_border">#get_cell_border</a>
|
|
90
|
-
|
|
91
86
|
<li ><a href="#method-i-get_cell_font">#get_cell_font</a>
|
|
92
|
-
|
|
93
87
|
<li ><a href="#method-i-get_cell_xf">#get_cell_xf</a>
|
|
94
|
-
|
|
95
88
|
<li ><a href="#method-i-index_in_collection">#index_in_collection</a>
|
|
96
|
-
|
|
97
89
|
<li ><a href="#method-i-inspect">#inspect</a>
|
|
98
|
-
|
|
99
90
|
<li ><a href="#method-i-is_date-3F">#is_date?</a>
|
|
100
|
-
|
|
101
91
|
<li ><a href="#method-i-number_format">#number_format</a>
|
|
102
|
-
|
|
103
92
|
<li ><a href="#method-i-raw_value">#raw_value</a>
|
|
104
|
-
|
|
105
93
|
<li ><a href="#method-i-raw_value-3D">#raw_value=</a>
|
|
106
|
-
|
|
107
94
|
<li ><a href="#method-i-row">#row</a>
|
|
108
|
-
|
|
109
95
|
<li ><a href="#method-i-row-3D">#row=</a>
|
|
110
|
-
|
|
111
96
|
<li ><a href="#method-i-value">#value</a>
|
|
112
|
-
|
|
113
97
|
</ul>
|
|
114
98
|
</div>
|
|
115
99
|
|
|
@@ -127,35 +111,24 @@
|
|
|
127
111
|
|
|
128
112
|
</section>
|
|
129
113
|
|
|
130
|
-
|
|
131
114
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
132
|
-
|
|
133
115
|
|
|
134
|
-
|
|
135
116
|
|
|
136
|
-
|
|
137
117
|
<section class="constants-list">
|
|
138
118
|
<header>
|
|
139
119
|
<h3>Constants</h3>
|
|
140
120
|
</header>
|
|
141
121
|
<dl>
|
|
142
|
-
|
|
143
122
|
<dt id="NUMBER_REGEXP">NUMBER_REGEXP
|
|
144
|
-
|
|
145
123
|
<dd>
|
|
146
|
-
|
|
147
|
-
|
|
148
124
|
</dl>
|
|
149
125
|
</section>
|
|
150
|
-
|
|
151
126
|
|
|
152
|
-
|
|
153
127
|
<section class="attribute-method-details" class="method-section">
|
|
154
128
|
<header>
|
|
155
129
|
<h3>Attributes</h3>
|
|
156
130
|
</header>
|
|
157
131
|
|
|
158
|
-
|
|
159
132
|
<div id="attribute-i-worksheet" class="method-detail">
|
|
160
133
|
<div class="method-heading attribute-method-heading">
|
|
161
134
|
<span class="method-name">worksheet</span><span
|
|
@@ -164,374 +137,247 @@
|
|
|
164
137
|
|
|
165
138
|
<div class="method-description">
|
|
166
139
|
|
|
167
|
-
|
|
168
|
-
|
|
169
140
|
</div>
|
|
170
141
|
</div>
|
|
171
|
-
|
|
172
142
|
</section>
|
|
173
|
-
|
|
174
143
|
|
|
175
|
-
|
|
144
|
+
|
|
176
145
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
177
146
|
<header>
|
|
178
147
|
<h3>Public Instance Methods</h3>
|
|
179
148
|
</header>
|
|
180
149
|
|
|
181
|
-
|
|
182
150
|
<div id="method-i-column" class="method-detail ">
|
|
183
|
-
|
|
184
151
|
<div class="method-heading">
|
|
185
152
|
<span class="method-name">column</span><span
|
|
186
153
|
class="method-args">()</span>
|
|
187
|
-
|
|
188
154
|
<span class="method-click-advice">click to toggle source</span>
|
|
189
|
-
|
|
190
155
|
</div>
|
|
191
|
-
|
|
192
156
|
|
|
193
157
|
<div class="method-description">
|
|
194
158
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
159
|
|
|
199
|
-
|
|
200
160
|
<div class="method-source-code" id="column-source">
|
|
201
161
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 61</span>
|
|
202
162
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">column</span>
|
|
203
163
|
<span class="ruby-identifier">r</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">first_col</span>
|
|
204
164
|
<span class="ruby-keyword">end</span></pre>
|
|
205
165
|
</div>
|
|
206
|
-
|
|
207
166
|
</div>
|
|
208
167
|
|
|
209
|
-
|
|
210
168
|
|
|
211
|
-
|
|
212
169
|
</div>
|
|
213
170
|
|
|
214
|
-
|
|
215
171
|
<div id="method-i-column-3D" class="method-detail ">
|
|
216
|
-
|
|
217
172
|
<div class="method-heading">
|
|
218
173
|
<span class="method-name">column=</span><span
|
|
219
174
|
class="method-args">(v)</span>
|
|
220
|
-
|
|
221
175
|
<span class="method-click-advice">click to toggle source</span>
|
|
222
|
-
|
|
223
176
|
</div>
|
|
224
|
-
|
|
225
177
|
|
|
226
178
|
<div class="method-description">
|
|
227
179
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
180
|
|
|
232
|
-
|
|
233
181
|
<div class="method-source-code" id="column-3D-source">
|
|
234
182
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 65</span>
|
|
235
183
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">column=</span>(<span class="ruby-identifier">v</span>)
|
|
236
184
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">row</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">v</span>)
|
|
237
185
|
<span class="ruby-keyword">end</span></pre>
|
|
238
186
|
</div>
|
|
239
|
-
|
|
240
187
|
</div>
|
|
241
188
|
|
|
242
|
-
|
|
243
189
|
|
|
244
|
-
|
|
245
190
|
</div>
|
|
246
191
|
|
|
247
|
-
|
|
248
192
|
<div id="method-i-get_cell_border" class="method-detail ">
|
|
249
|
-
|
|
250
193
|
<div class="method-heading">
|
|
251
194
|
<span class="method-name">get_cell_border</span><span
|
|
252
195
|
class="method-args">()</span>
|
|
253
|
-
|
|
254
196
|
<span class="method-click-advice">click to toggle source</span>
|
|
255
|
-
|
|
256
197
|
</div>
|
|
257
|
-
|
|
258
198
|
|
|
259
199
|
<div class="method-description">
|
|
260
200
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
201
|
|
|
265
|
-
|
|
266
202
|
<div class="method-source-code" id="get_cell_border-source">
|
|
267
203
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 86</span>
|
|
268
204
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_border</span>
|
|
269
205
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">border_id</span>]
|
|
270
206
|
<span class="ruby-keyword">end</span></pre>
|
|
271
207
|
</div>
|
|
272
|
-
|
|
273
208
|
</div>
|
|
274
209
|
|
|
275
|
-
|
|
276
210
|
|
|
277
|
-
|
|
278
211
|
</div>
|
|
279
212
|
|
|
280
|
-
|
|
281
213
|
<div id="method-i-get_cell_font" class="method-detail ">
|
|
282
|
-
|
|
283
214
|
<div class="method-heading">
|
|
284
215
|
<span class="method-name">get_cell_font</span><span
|
|
285
216
|
class="method-args">()</span>
|
|
286
|
-
|
|
287
217
|
<span class="method-click-advice">click to toggle source</span>
|
|
288
|
-
|
|
289
218
|
</div>
|
|
290
|
-
|
|
291
219
|
|
|
292
220
|
<div class="method-description">
|
|
293
221
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
222
|
|
|
298
|
-
|
|
299
223
|
<div class="method-source-code" id="get_cell_font-source">
|
|
300
224
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 82</span>
|
|
301
225
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_font</span>
|
|
302
226
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">font_id</span>]
|
|
303
227
|
<span class="ruby-keyword">end</span></pre>
|
|
304
228
|
</div>
|
|
305
|
-
|
|
306
229
|
</div>
|
|
307
230
|
|
|
308
|
-
|
|
309
231
|
|
|
310
|
-
|
|
311
232
|
</div>
|
|
312
233
|
|
|
313
|
-
|
|
314
234
|
<div id="method-i-get_cell_xf" class="method-detail ">
|
|
315
|
-
|
|
316
235
|
<div class="method-heading">
|
|
317
236
|
<span class="method-name">get_cell_xf</span><span
|
|
318
237
|
class="method-args">()</span>
|
|
319
|
-
|
|
320
238
|
<span class="method-click-advice">click to toggle source</span>
|
|
321
|
-
|
|
322
239
|
</div>
|
|
323
|
-
|
|
324
240
|
|
|
325
241
|
<div class="method-description">
|
|
326
242
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
243
|
|
|
331
|
-
|
|
332
244
|
<div class="method-source-code" id="get_cell_xf-source">
|
|
333
245
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 78</span>
|
|
334
246
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_xf</span>
|
|
335
247
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>]
|
|
336
248
|
<span class="ruby-keyword">end</span></pre>
|
|
337
249
|
</div>
|
|
338
|
-
|
|
339
250
|
</div>
|
|
340
251
|
|
|
341
|
-
|
|
342
252
|
|
|
343
|
-
|
|
344
253
|
</div>
|
|
345
254
|
|
|
346
|
-
|
|
347
255
|
<div id="method-i-index_in_collection" class="method-detail ">
|
|
348
|
-
|
|
349
256
|
<div class="method-heading">
|
|
350
257
|
<span class="method-name">index_in_collection</span><span
|
|
351
258
|
class="method-args">()</span>
|
|
352
|
-
|
|
353
259
|
<span class="method-click-advice">click to toggle source</span>
|
|
354
|
-
|
|
355
260
|
</div>
|
|
356
|
-
|
|
357
261
|
|
|
358
262
|
<div class="method-description">
|
|
359
263
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
264
|
|
|
364
|
-
|
|
365
265
|
<div class="method-source-code" id="index_in_collection-source">
|
|
366
266
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 49</span>
|
|
367
267
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">index_in_collection</span>
|
|
368
268
|
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">begin</span>
|
|
369
269
|
<span class="ruby-keyword">end</span></pre>
|
|
370
270
|
</div>
|
|
371
|
-
|
|
372
271
|
</div>
|
|
373
272
|
|
|
374
|
-
|
|
375
273
|
|
|
376
|
-
|
|
377
274
|
</div>
|
|
378
275
|
|
|
379
|
-
|
|
380
276
|
<div id="method-i-inspect" class="method-detail ">
|
|
381
|
-
|
|
382
277
|
<div class="method-heading">
|
|
383
278
|
<span class="method-name">inspect</span><span
|
|
384
279
|
class="method-args">()</span>
|
|
385
|
-
|
|
386
280
|
<span class="method-click-advice">click to toggle source</span>
|
|
387
|
-
|
|
388
281
|
</div>
|
|
389
|
-
|
|
390
282
|
|
|
391
283
|
<div class="method-description">
|
|
392
284
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
285
|
|
|
397
|
-
|
|
398
286
|
<div class="method-source-code" id="inspect-source">
|
|
399
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
287
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 127</span>
|
|
400
288
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inspect</span>
|
|
401
289
|
<span class="ruby-identifier">str</span> = <span class="ruby-node">"#<#{self.class}(#{row},#{column}): #{raw_value.inspect}"</span>
|
|
402
|
-
<span class="ruby-identifier">str</span> <span class="ruby-operator"
|
|
403
|
-
<span class="ruby-identifier">str</span> <span class="ruby-operator"
|
|
290
|
+
<span class="ruby-identifier">str</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" =#{self.formula.expression}"</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span>
|
|
291
|
+
<span class="ruby-identifier">str</span> <span class="ruby-operator"><<</span> <span class="ruby-node">", datatype=#{self.datatype.inspect}, style_index=#{self.style_index.inspect}>"</span>
|
|
404
292
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">str</span>
|
|
405
293
|
<span class="ruby-keyword">end</span></pre>
|
|
406
294
|
</div>
|
|
407
|
-
|
|
408
295
|
</div>
|
|
409
296
|
|
|
410
|
-
|
|
411
297
|
|
|
412
|
-
|
|
413
298
|
</div>
|
|
414
299
|
|
|
415
|
-
|
|
416
300
|
<div id="method-i-is_date-3F" class="method-detail ">
|
|
417
|
-
|
|
418
301
|
<div class="method-heading">
|
|
419
302
|
<span class="method-name">is_date?</span><span
|
|
420
303
|
class="method-args">()</span>
|
|
421
|
-
|
|
422
304
|
<span class="method-click-advice">click to toggle source</span>
|
|
423
|
-
|
|
424
305
|
</div>
|
|
425
|
-
|
|
426
306
|
|
|
427
307
|
<div class="method-description">
|
|
428
308
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
309
|
|
|
433
|
-
|
|
434
310
|
<div class="method-source-code" id="is_date-3F-source">
|
|
435
311
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 94</span>
|
|
436
312
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_date?</span>
|
|
437
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-
|
|
313
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-comment"># Only fully numeric values can be dates</span>
|
|
314
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">raw_value</span>
|
|
315
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">true</span>
|
|
316
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">raw_value</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">NUMBER_REGEXP</span>
|
|
317
|
+
<span class="ruby-keyword">else</span> <span class="ruby-keyword">false</span>
|
|
318
|
+
<span class="ruby-keyword">end</span>
|
|
319
|
+
|
|
438
320
|
<span class="ruby-identifier">num_fmt</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">number_format</span>
|
|
439
321
|
<span class="ruby-identifier">num_fmt</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">num_fmt</span>.<span class="ruby-identifier">is_date_format?</span>
|
|
440
322
|
<span class="ruby-keyword">end</span></pre>
|
|
441
323
|
</div>
|
|
442
|
-
|
|
443
324
|
</div>
|
|
444
325
|
|
|
445
|
-
|
|
446
326
|
|
|
447
|
-
|
|
448
327
|
</div>
|
|
449
328
|
|
|
450
|
-
|
|
451
329
|
<div id="method-i-number_format" class="method-detail ">
|
|
452
|
-
|
|
453
330
|
<div class="method-heading">
|
|
454
331
|
<span class="method-name">number_format</span><span
|
|
455
332
|
class="method-args">()</span>
|
|
456
|
-
|
|
457
333
|
<span class="method-click-advice">click to toggle source</span>
|
|
458
|
-
|
|
459
334
|
</div>
|
|
460
|
-
|
|
461
335
|
|
|
462
336
|
<div class="method-description">
|
|
463
337
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
338
|
|
|
468
|
-
|
|
469
339
|
<div class="method-source-code" id="number_format-source">
|
|
470
340
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 90</span>
|
|
471
341
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">number_format</span>
|
|
472
342
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">get_number_format_by_id</span>(<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">num_fmt_id</span>)
|
|
473
343
|
<span class="ruby-keyword">end</span></pre>
|
|
474
344
|
</div>
|
|
475
|
-
|
|
476
345
|
</div>
|
|
477
346
|
|
|
478
|
-
|
|
479
347
|
|
|
480
|
-
|
|
481
348
|
</div>
|
|
482
349
|
|
|
483
|
-
|
|
484
350
|
<div id="method-i-raw_value" class="method-detail ">
|
|
485
|
-
|
|
486
351
|
<div class="method-heading">
|
|
487
352
|
<span class="method-name">raw_value</span><span
|
|
488
353
|
class="method-args">()</span>
|
|
489
|
-
|
|
490
354
|
<span class="method-click-advice">click to toggle source</span>
|
|
491
|
-
|
|
492
355
|
</div>
|
|
493
|
-
|
|
494
356
|
|
|
495
357
|
<div class="method-description">
|
|
496
358
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
359
|
|
|
501
|
-
|
|
502
360
|
<div class="method-source-code" id="raw_value-source">
|
|
503
361
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 69</span>
|
|
504
362
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raw_value</span>
|
|
505
363
|
<span class="ruby-identifier">value_container</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value_container</span>.<span class="ruby-identifier">value</span>
|
|
506
364
|
<span class="ruby-keyword">end</span></pre>
|
|
507
365
|
</div>
|
|
508
|
-
|
|
509
366
|
</div>
|
|
510
367
|
|
|
511
|
-
|
|
512
368
|
|
|
513
|
-
|
|
514
369
|
</div>
|
|
515
370
|
|
|
516
|
-
|
|
517
371
|
<div id="method-i-raw_value-3D" class="method-detail ">
|
|
518
|
-
|
|
519
372
|
<div class="method-heading">
|
|
520
373
|
<span class="method-name">raw_value=</span><span
|
|
521
374
|
class="method-args">(v)</span>
|
|
522
|
-
|
|
523
375
|
<span class="method-click-advice">click to toggle source</span>
|
|
524
|
-
|
|
525
376
|
</div>
|
|
526
|
-
|
|
527
377
|
|
|
528
378
|
<div class="method-description">
|
|
529
379
|
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
380
|
|
|
534
|
-
|
|
535
381
|
<div class="method-source-code" id="raw_value-3D-source">
|
|
536
382
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 73</span>
|
|
537
383
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raw_value=</span>(<span class="ruby-identifier">v</span>)
|
|
@@ -539,101 +385,65 @@
|
|
|
539
385
|
<span class="ruby-identifier">value_container</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
|
540
386
|
<span class="ruby-keyword">end</span></pre>
|
|
541
387
|
</div>
|
|
542
|
-
|
|
543
388
|
</div>
|
|
544
389
|
|
|
545
|
-
|
|
546
390
|
|
|
547
|
-
|
|
548
391
|
</div>
|
|
549
392
|
|
|
550
|
-
|
|
551
393
|
<div id="method-i-row" class="method-detail ">
|
|
552
|
-
|
|
553
394
|
<div class="method-heading">
|
|
554
395
|
<span class="method-name">row</span><span
|
|
555
396
|
class="method-args">()</span>
|
|
556
|
-
|
|
557
397
|
<span class="method-click-advice">click to toggle source</span>
|
|
558
|
-
|
|
559
398
|
</div>
|
|
560
|
-
|
|
561
399
|
|
|
562
400
|
<div class="method-description">
|
|
563
401
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
402
|
|
|
568
|
-
|
|
569
403
|
<div class="method-source-code" id="row-source">
|
|
570
404
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 53</span>
|
|
571
405
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row</span>
|
|
572
406
|
<span class="ruby-identifier">r</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">first_row</span>
|
|
573
407
|
<span class="ruby-keyword">end</span></pre>
|
|
574
408
|
</div>
|
|
575
|
-
|
|
576
409
|
</div>
|
|
577
410
|
|
|
578
|
-
|
|
579
411
|
|
|
580
|
-
|
|
581
412
|
</div>
|
|
582
413
|
|
|
583
|
-
|
|
584
414
|
<div id="method-i-row-3D" class="method-detail ">
|
|
585
|
-
|
|
586
415
|
<div class="method-heading">
|
|
587
416
|
<span class="method-name">row=</span><span
|
|
588
417
|
class="method-args">(v)</span>
|
|
589
|
-
|
|
590
418
|
<span class="method-click-advice">click to toggle source</span>
|
|
591
|
-
|
|
592
419
|
</div>
|
|
593
|
-
|
|
594
420
|
|
|
595
421
|
<div class="method-description">
|
|
596
422
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
423
|
|
|
601
|
-
|
|
602
424
|
<div class="method-source-code" id="row-3D-source">
|
|
603
425
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 57</span>
|
|
604
426
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row=</span>(<span class="ruby-identifier">v</span>)
|
|
605
427
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">v</span>, <span class="ruby-identifier">column</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>)
|
|
606
428
|
<span class="ruby-keyword">end</span></pre>
|
|
607
429
|
</div>
|
|
608
|
-
|
|
609
430
|
</div>
|
|
610
431
|
|
|
611
|
-
|
|
612
432
|
|
|
613
|
-
|
|
614
433
|
</div>
|
|
615
434
|
|
|
616
|
-
|
|
617
435
|
<div id="method-i-value" class="method-detail ">
|
|
618
|
-
|
|
619
436
|
<div class="method-heading">
|
|
620
437
|
<span class="method-name">value</span><span
|
|
621
438
|
class="method-args">(args = {})</span>
|
|
622
|
-
|
|
623
439
|
<span class="method-click-advice">click to toggle source</span>
|
|
624
|
-
|
|
625
440
|
</div>
|
|
626
|
-
|
|
627
441
|
|
|
628
442
|
<div class="method-description">
|
|
629
|
-
|
|
630
443
|
<p>Gets massaged value of the cell, converting datatypes to those known to Ruby (that includes stripping any special formatting from <a href="RichText.html"><code>RichText</code></a>).</p>
|
|
631
|
-
|
|
632
|
-
|
|
633
444
|
|
|
634
|
-
|
|
635
445
|
<div class="method-source-code" id="value-source">
|
|
636
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
446
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 108</span>
|
|
637
447
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">value</span>(<span class="ruby-identifier">args</span> = {})
|
|
638
448
|
<span class="ruby-identifier">r</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span>
|
|
639
449
|
|
|
@@ -642,7 +452,8 @@
|
|
|
642
452
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">INLINE_STRING</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">is</span>.<span class="ruby-identifier">to_s</span>
|
|
643
453
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">RAW_STRING</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">raw_value</span>
|
|
644
454
|
<span class="ruby-keyword">else</span>
|
|
645
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">
|
|
455
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">is</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">is</span>.<span class="ruby-identifier">to_s</span>
|
|
456
|
+
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">is_date?</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_f</span>)
|
|
646
457
|
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">r</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">NUMBER_REGEXP</span>) <span class="ruby-keyword">then</span> <span class="ruby-comment"># Numeric</span>
|
|
647
458
|
<span class="ruby-keyword">if</span> <span class="ruby-node">$1</span> <span class="ruby-operator">!=</span> <span class="ruby-string">''</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_f</span>
|
|
648
459
|
<span class="ruby-keyword">else</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_i</span>
|
|
@@ -652,24 +463,20 @@
|
|
|
652
463
|
<span class="ruby-keyword">end</span>
|
|
653
464
|
<span class="ruby-keyword">end</span></pre>
|
|
654
465
|
</div>
|
|
655
|
-
|
|
656
466
|
</div>
|
|
657
467
|
|
|
658
|
-
|
|
659
468
|
|
|
660
|
-
|
|
661
469
|
</div>
|
|
662
470
|
|
|
663
|
-
|
|
664
471
|
</section>
|
|
665
|
-
|
|
472
|
+
|
|
666
473
|
</section>
|
|
667
474
|
</main>
|
|
668
475
|
|
|
669
476
|
|
|
670
477
|
<footer id="validator-badges" role="contentinfo">
|
|
671
478
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
672
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
|
479
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
|
673
480
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
674
481
|
</footer>
|
|
675
482
|
|