xlsxrb 0.2.0 → 0.2.1

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.
@@ -8,8 +8,9 @@ module Xlsxrb
8
8
  # @param name [String] The worksheet name.
9
9
  # @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel limits.
10
10
  # @param state [Symbol] Sheet visibility state (:visible, :hidden, or :very_hidden).
11
- # : (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
12
- def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
11
+ # @param style_log [StyleLog] When the workbook's styles are defined (internal).
12
+ # : (String name, ?strict_excel_mode: bool, ?state: Symbol, ?style_log: StyleLog) -> void
13
+ def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol, ?style_log: StyleLog) -> void
13
14
 
14
15
  # : String
15
16
  attr_reader name: untyped
@@ -27,6 +28,8 @@ module Xlsxrb
27
28
  # @yield [style_builder]
28
29
  # @yieldparam style_builder [Xlsxrb::StyleBuilder]
29
30
  # @return [StyleBuilder]
31
+ # Using the returned value is deprecated and warns; in version 0.3.0, this method
32
+ # will return nil. Configure the style with options or in the block.
30
33
  # @api public
31
34
  # : (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
32
35
  def style: (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
@@ -900,17 +903,626 @@ module Xlsxrb
900
903
  # : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
901
904
  def sheet_calc_properties=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
902
905
 
903
- # Builds and returns the in-memory {Elements::Worksheet}.
906
+ # Builds and returns the in-memory {Elements::Worksheet}. Cells carry their style
907
+ # names; {WorkbookBuilder#build} resolves them to style indexes.
904
908
  #
909
+ # @deprecated Read the sheet from the workbook that {Xlsxrb.build} returns. This
910
+ # method will be private in version 0.3.0.
905
911
  # @return [Elements::Worksheet]
906
912
  # @api public
907
913
  # : () -> Elements::Worksheet
908
914
  def build: () -> Elements::Worksheet
909
915
 
916
+ # Ends the sheet block: rows can no longer be added, and the sheet's state is taken
917
+ # as it is now.
918
+ #
919
+ # @return [Snapshot]
920
+ # @api private
921
+ # : () -> Snapshot
922
+ def close: () -> Snapshot
923
+
910
924
  # Internal: returns styles for later processing by WorkbookBuilder
911
925
  # @return [Hash{String => StyleBuilder}]
912
926
  # : Hash[String, StyleBuilder]
913
927
  attr_reader styles: untyped
928
+
929
+ private
930
+
931
+ # : () -> void
932
+ def check_open!: () -> void
933
+
934
+ # The style that a Date or Time cell without a cell style inherits, to give the cell
935
+ # in its place: the row style, or the sheet's column style in a row without one. The
936
+ # workbook then gives the cell a variant of that style with the default date or
937
+ # date-time format, so it keeps the style's font, fill, and border, as StreamWriter
938
+ # does. Returns nil for a style index or for no style.
939
+ # : (untyped row_style, Integer column_index) -> (String | Symbol | Hash[Symbol, untyped])?
940
+ def inherited_date_style: (untyped row_style, Integer column_index) -> (String | Symbol | Hash[Symbol, untyped])?
941
+
942
+ # Returns the number format code of the sheet style named +style_name+, if it has one.
943
+ # : (untyped style_name) -> String?
944
+ def format_code_of: (untyped style_name) -> String?
945
+
946
+ # : (Array[PendingRow] rows) -> Snapshot
947
+ def snapshot: (Array[PendingRow] rows) -> Snapshot
948
+ end
949
+
950
+ class WorksheetBuilder
951
+ # A row as given to {WorksheetBuilder#row}, kept until the workbook resolves its
952
+ # style names, so that its cells are created once.
953
+ #
954
+ # @api private
955
+ class PendingRow
956
+ # : Integer
957
+ attr_reader index: untyped
958
+
959
+ # Cell values; Hashes with :formula and rich text runs are already converted.
960
+ # : Array[untyped]
961
+ attr_reader values: untyped
962
+
963
+ # Style of each cell: a name, an index, or nil; or one of these for every cell.
964
+ # : untyped
965
+ attr_reader styles: untyped
966
+
967
+ # Number format codes of the cells' sheet styles: an Array, one code, or nil.
968
+ # : untyped
969
+ attr_reader format_codes: untyped
970
+
971
+ # Number of columns the row spans, including styled cells past the last value.
972
+ # : Integer
973
+ attr_reader width: untyped
974
+
975
+ # : (Float | Integer)?
976
+ attr_reader height: untyped
977
+
978
+ # : untyped
979
+ attr_reader hidden: untyped
980
+
981
+ # : bool
982
+ attr_reader custom_height: untyped
983
+
984
+ # : untyped
985
+ attr_reader collapsed: untyped
986
+
987
+ # : Integer?
988
+ attr_reader outline_level: untyped
989
+
990
+ # The row style as given: a name, an index, an inline Hash, or nil.
991
+ # : untyped
992
+ attr_reader style: untyped
993
+
994
+ # The style log clock when the row was added: its styles are the definitions made before.
995
+ # : Integer
996
+ attr_reader clock: untyped
997
+
998
+ # : (Integer index, Array[untyped] values, untyped styles, untyped format_codes, Integer width, (Float | Integer)? height, untyped hidden, bool custom_height, untyped collapsed, Integer? outline_level, untyped style, Integer clock) -> void
999
+ def initialize: (Integer index, Array[untyped] values, untyped styles, untyped format_codes, Integer width, (Float | Integer)? height, untyped hidden, bool custom_height, untyped collapsed, Integer? outline_level, untyped style, Integer clock) -> void
1000
+
1001
+ # : (hidden: untyped, collapsed: untyped, outline_level: Integer?) -> PendingRow
1002
+ def with_outline: (hidden: untyped, collapsed: untyped, outline_level: Integer?) -> PendingRow
1003
+
1004
+ # Returns whether every cell of the row is within Excel's row and column limits.
1005
+ # : () -> bool
1006
+ def within_limits?: () -> bool
1007
+
1008
+ # Returns the row's cells with their style names, as {WorksheetBuilder#build} gives them.
1009
+ # : () -> Array[Elements::Cell]
1010
+ def named_cells: () -> Array[Elements::Cell]
1011
+
1012
+ # : (Array[Elements::Cell] cells, untyped style_index) -> Elements::Row
1013
+ def to_row: (Array[Elements::Cell] cells, untyped style_index) -> Elements::Row
1014
+
1015
+ # Creates a cell for +value+ with +style+ (a name, an index, or nil).
1016
+ # +valid_coordinates+ tells whether the cell is within Excel's limits; a valid cell
1017
+ # has no errors, so it skips the checks of Cell.new.
1018
+ # : (Integer row_index, Integer column_index, untyped value, untyped style, String? format_code, bool valid_coordinates) -> Elements::Cell
1019
+ def self.cell: (Integer row_index, Integer column_index, untyped value, untyped style, String? format_code, bool valid_coordinates) -> Elements::Cell
1020
+ end
1021
+
1022
+ # The state of a sheet when its block ended: the worksheet without its rows, the
1023
+ # pending rows, and the hyperlinks and comments to attach to their cells.
1024
+ #
1025
+ # @api private
1026
+ class Snapshot
1027
+ # The worksheet with every part except its rows.
1028
+ # : Elements::Worksheet
1029
+ attr_reader frame: untyped
1030
+
1031
+ # : Array[PendingRow]
1032
+ attr_reader rows: untyped
1033
+
1034
+ # The style log clock when each column's style was set.
1035
+ # : Hash[Integer, Integer]
1036
+ attr_reader column_style_clocks: untyped
1037
+
1038
+ # : (Elements::Worksheet frame, Array[PendingRow] rows, Hash[String, untyped] hyperlinks, Hash[String, untyped] comments, Hash[String, Array[untyped]] threaded_comments, Hash[Integer, Integer] column_style_clocks) -> void
1039
+ def initialize: (Elements::Worksheet frame, Array[PendingRow] rows, Hash[String, untyped] hyperlinks, Hash[String, untyped] comments, Hash[String, Array[untyped]] threaded_comments, Hash[Integer, Integer] column_style_clocks) -> void
1040
+
1041
+ # Returns the worksheet with +rows+, or with the rows' named cells by default.
1042
+ # : (?Array[Elements::Row]? rows, ?Array[Elements::Column]? columns) -> Elements::Worksheet
1043
+ def worksheet: (?Array[Elements::Row]? rows, ?Array[Elements::Column]? columns) -> Elements::Worksheet
1044
+
1045
+ # Attaches the sheet's hyperlinks and comments to the cells they refer to.
1046
+ # : (Array[Elements::Cell] cells) -> Array[Elements::Cell]
1047
+ def attach_links: (Array[Elements::Cell] cells) -> Array[Elements::Cell]
1048
+ end
1049
+ end
1050
+
1051
+ # Stands in for the {Elements::Worksheet} of a sheet defined in {Xlsxrb.build}, as
1052
+ # returned by {WorkbookBuilder#sheet}. It answers the same methods with the same
1053
+ # results. The worksheet is built the first time one of them is called, or when the
1054
+ # object is frozen (as Ractor.make_shareable does), so a sheet whose return value is
1055
+ # never used costs nothing.
1056
+ #
1057
+ # @deprecated Read the sheet from the workbook that {Xlsxrb.build} returns. In version
1058
+ # 0.3.0, {WorkbookBuilder#sheet} will return the sheet's {WorksheetBuilder}, and
1059
+ # {WorkbookBuilder#[]} will return the {WorksheetBuilder} of an existing sheet.
1060
+ # @api public
1061
+ class DeferredWorksheet
1062
+ DEPRECATION_MESSAGE: ::String
1063
+
1064
+ # : (WorksheetBuilder::Snapshot snapshot) -> void
1065
+ def initialize: (WorksheetBuilder::Snapshot snapshot) -> void
1066
+
1067
+ # Returns the worksheet, building it on first use.
1068
+ #
1069
+ # @return [Elements::Worksheet]
1070
+ # @api public
1071
+ # : () -> Elements::Worksheet
1072
+ def worksheet: () -> Elements::Worksheet
1073
+
1074
+ # : (untyped other) -> bool
1075
+ def ==: (untyped other) -> bool
1076
+
1077
+ # : (untyped other) -> bool
1078
+ def eql?: (untyped other) -> bool
1079
+
1080
+ # : () -> Integer
1081
+ def hash: () -> Integer
1082
+
1083
+ # : () -> String
1084
+ def inspect: () -> String
1085
+
1086
+ # : () -> String
1087
+ def to_s: () -> String
1088
+
1089
+ # : (untyped printer) -> untyped
1090
+ def pretty_print: (untyped printer) -> untyped
1091
+
1092
+ # Builds the worksheet before freezing, so that a frozen stand-in still answers.
1093
+ # : () -> self
1094
+ def freeze: () -> self
1095
+
1096
+ # : (String | Symbol | Integer ref_or_row, ?Integer | String | Symbol | nil col) -> Elements::Cell?
1097
+ def []: (String | Symbol | Integer ref_or_row, ?Integer | String | Symbol | nil col) -> Elements::Cell?
1098
+
1099
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1100
+ def all?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1101
+
1102
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1103
+ def any?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1104
+
1105
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1106
+ def auto_filter: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1107
+
1108
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1109
+ def background_image: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1110
+
1111
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1112
+ def cell_watches: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1113
+
1114
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1115
+ def cells: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1116
+
1117
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1118
+ def chain: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1119
+
1120
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1121
+ def charts: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1122
+
1123
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1124
+ def chunk: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1125
+
1126
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1127
+ def chunk_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1128
+
1129
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1130
+ def code_name: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1131
+
1132
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1133
+ def collect: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1134
+
1135
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1136
+ def collect_concat: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1137
+
1138
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1139
+ def column_breaks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1140
+
1141
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1142
+ def column_range: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1143
+
1144
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1145
+ def columns: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1146
+
1147
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1148
+ def comment: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1149
+
1150
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1151
+ def comments: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1152
+
1153
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1154
+ def comments_by_ref: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1155
+
1156
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1157
+ def compact: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1158
+
1159
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1160
+ def conditional_formats: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1161
+
1162
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1163
+ def count: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1164
+
1165
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1166
+ def cycle: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1167
+
1168
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1169
+ def data_validations: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1170
+
1171
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1172
+ def date1904?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1173
+
1174
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1175
+ def deconstruct: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1176
+
1177
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1178
+ def deconstruct_keys: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1179
+
1180
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1181
+ def detect: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1182
+
1183
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1184
+ def dimension: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1185
+
1186
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1187
+ def dimension_bounds: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1188
+
1189
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1190
+ def drop: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1191
+
1192
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1193
+ def drop_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1194
+
1195
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1196
+ def each: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1197
+
1198
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1199
+ def each_cell: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1200
+
1201
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1202
+ def each_cons: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1203
+
1204
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1205
+ def each_entry: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1206
+
1207
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1208
+ def each_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1209
+
1210
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1211
+ def each_row_values: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1212
+
1213
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1214
+ def each_slice: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1215
+
1216
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1217
+ def each_with_index: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1218
+
1219
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1220
+ def each_with_object: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1221
+
1222
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1223
+ def entries: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1224
+
1225
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1226
+ def errors: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1227
+
1228
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1229
+ def filter: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1230
+
1231
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1232
+ def filter_columns: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1233
+
1234
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1235
+ def filter_map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1236
+
1237
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1238
+ def find: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1239
+
1240
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1241
+ def find_all: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1242
+
1243
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1244
+ def find_index: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1245
+
1246
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1247
+ def first: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1248
+
1249
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1250
+ def first_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1251
+
1252
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1253
+ def fit_to_page?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1254
+
1255
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1256
+ def flat_map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1257
+
1258
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1259
+ def formatted_value: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1260
+
1261
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1262
+ def freeze_pane: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1263
+
1264
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1265
+ def full_calc_on_load?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1266
+
1267
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1268
+ def grep: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1269
+
1270
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1271
+ def grep_v: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1272
+
1273
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1274
+ def group_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1275
+
1276
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1277
+ def header_footer: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1278
+
1279
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1280
+ def header_footer_images: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1281
+
1282
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1283
+ def hidden?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1284
+
1285
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1286
+ def hyperlink: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1287
+
1288
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1289
+ def hyperlinks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1290
+
1291
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1292
+ def ignored_errors: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1293
+
1294
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1295
+ def images: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1296
+
1297
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1298
+ def images_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1299
+
1300
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1301
+ def include?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1302
+
1303
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1304
+ def inject: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1305
+
1306
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1307
+ def last_row: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1308
+
1309
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1310
+ def lazy: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1311
+
1312
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1313
+ def map: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1314
+
1315
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1316
+ def max: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1317
+
1318
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1319
+ def max_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1320
+
1321
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1322
+ def member?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1323
+
1324
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1325
+ def merged_cells: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1326
+
1327
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1328
+ def min: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1329
+
1330
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1331
+ def min_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1332
+
1333
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1334
+ def minmax: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1335
+
1336
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1337
+ def minmax_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1338
+
1339
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1340
+ def name: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1341
+
1342
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1343
+ def none?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1344
+
1345
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1346
+ def one?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1347
+
1348
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1349
+ def outline_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1350
+
1351
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1352
+ def pad_empty_cells?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1353
+
1354
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1355
+ def pad_empty_rows?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1356
+
1357
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1358
+ def page_margins: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1359
+
1360
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1361
+ def page_setup: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1362
+
1363
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1364
+ def partition: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1365
+
1366
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1367
+ def phonetic_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1368
+
1369
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1370
+ def pivot_tables: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1371
+
1372
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1373
+ def print_area: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1374
+
1375
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1376
+ def print_options: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1377
+
1378
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1379
+ def print_titles: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1380
+
1381
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1382
+ def protected_ranges: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1383
+
1384
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1385
+ def reduce: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1386
+
1387
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1388
+ def reject: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1389
+
1390
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1391
+ def reverse_each: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1392
+
1393
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1394
+ def row_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1395
+
1396
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1397
+ def row_breaks: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1398
+
1399
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1400
+ def row_range: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1401
+
1402
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1403
+ def rows: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1404
+
1405
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1406
+ def select: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1407
+
1408
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1409
+ def selection: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1410
+
1411
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1412
+ def shapes: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1413
+
1414
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1415
+ def sheet_calc_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1416
+
1417
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1418
+ def sheet_format: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1419
+
1420
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1421
+ def sheet_properties: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1422
+
1423
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1424
+ def sheet_protection: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1425
+
1426
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1427
+ def sheet_view: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1428
+
1429
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1430
+ def slice_after: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1431
+
1432
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1433
+ def slice_before: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1434
+
1435
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1436
+ def slice_when: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1437
+
1438
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1439
+ def sort: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1440
+
1441
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1442
+ def sort_by: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1443
+
1444
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1445
+ def sort_state: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1446
+
1447
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1448
+ def sparkline_groups: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1449
+
1450
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1451
+ def split_pane: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1452
+
1453
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1454
+ def state: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1455
+
1456
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1457
+ def styles: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1458
+
1459
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1460
+ def sum: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1461
+
1462
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1463
+ def tab_color: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1464
+
1465
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1466
+ def tables: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1467
+
1468
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1469
+ def take: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1470
+
1471
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1472
+ def take_while: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1473
+
1474
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1475
+ def tally: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1476
+
1477
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1478
+ def threaded_comment: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1479
+
1480
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1481
+ def threaded_comments: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1482
+
1483
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1484
+ def threaded_comments_at: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1485
+
1486
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1487
+ def threaded_comments_by_ref: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1488
+
1489
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1490
+ def to_a: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1491
+
1492
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1493
+ def to_h: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1494
+
1495
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1496
+ def to_set: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1497
+
1498
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1499
+ def trim_empty_rows?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1500
+
1501
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1502
+ def uniq: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1503
+
1504
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1505
+ def unmapped_data: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1506
+
1507
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1508
+ def valid?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1509
+
1510
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1511
+ def very_hidden?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1512
+
1513
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1514
+ def visible?: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1515
+
1516
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1517
+ def with: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1518
+
1519
+ # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1520
+ def zip: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
1521
+
1522
+ # Returns the worksheet, building it on first use with a deprecation warning that
1523
+ # points at the caller of the public method.
1524
+ # : () -> Elements::Worksheet
1525
+ def built_worksheet: () -> Elements::Worksheet
914
1526
  end
915
1527
 
916
1528
  # Builder context for configuring an Excel Table (ListObject) in block form.
@@ -27,6 +27,17 @@ module Xlsxrb
27
27
  class Error < StandardError
28
28
  end
29
29
 
30
+ # @api private
31
+ module Deprecation
32
+ LIB_DIR: untyped
33
+
34
+ # Warns that a feature is deprecated, at the location +uplevel+ frames above the caller,
35
+ # or, with +uplevel: nil+, at the first caller outside this library, for methods that
36
+ # are reached both directly and through another xlsxrb method.
37
+ # : (String message, ?uplevel: Integer?) -> void
38
+ def self.warn: (String message, ?uplevel: Integer?) -> void
39
+ end
40
+
30
41
  # Raised when parsing malformed or invalid XML structures.
31
42
  class ParseError < Error
32
43
  end
@@ -527,6 +538,10 @@ module Xlsxrb
527
538
  # end
528
539
  # end
529
540
  #
541
+ # @note Planned for version 0.3.0: Cell#format_code of the built cells will be the
542
+ # number format of each cell's resolved style, as in a loaded workbook; cells styled
543
+ # :default or :none will have style index 0; and a style index given in cell_styles
544
+ # will be kept only in Cell#style_index.
530
545
  # @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel specification limits.
531
546
  # @param default_font [Hash, nil] Optional default font options.
532
547
  # @yield [builder]