dbf 4.1.3 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +166 -104
- data/Gemfile +1 -0
- data/Gemfile.lock +63 -52
- data/LICENSE +1 -1
- data/README.md +110 -16
- data/bin/dbf +2 -0
- data/docs/CNAME +1 -0
- data/docs/DBF.html +200 -0
- data/docs/DBF/Column.html +947 -0
- data/docs/DBF/Column/LengthError.html +124 -0
- data/docs/DBF/Column/NameError.html +124 -0
- data/docs/DBF/ColumnType.html +115 -0
- data/docs/DBF/ColumnType/Base.html +389 -0
- data/docs/DBF/ColumnType/Boolean.html +238 -0
- data/docs/DBF/ColumnType/Currency.html +238 -0
- data/docs/DBF/ColumnType/Date.html +242 -0
- data/docs/DBF/ColumnType/DateTime.html +246 -0
- data/docs/DBF/ColumnType/Double.html +238 -0
- data/docs/DBF/ColumnType/Float.html +238 -0
- data/docs/DBF/ColumnType/General.html +238 -0
- data/docs/DBF/ColumnType/Memo.html +246 -0
- data/docs/DBF/ColumnType/Nil.html +238 -0
- data/docs/DBF/ColumnType/Number.html +242 -0
- data/docs/DBF/ColumnType/SignedLong.html +238 -0
- data/docs/DBF/ColumnType/String.html +240 -0
- data/docs/DBF/Database.html +126 -0
- data/docs/DBF/Database/Foxpro.html +653 -0
- data/docs/DBF/Database/Table.html +346 -0
- data/docs/DBF/FileNotFoundError.html +124 -0
- data/docs/DBF/Header.html +723 -0
- data/docs/DBF/Memo.html +117 -0
- data/docs/DBF/Memo/Base.html +485 -0
- data/docs/DBF/Memo/Dbase3.html +242 -0
- data/docs/DBF/Memo/Dbase4.html +230 -0
- data/docs/DBF/Memo/Foxpro.html +268 -0
- data/docs/DBF/NoColumnsDefined.html +124 -0
- data/docs/DBF/Record.html +773 -0
- data/docs/DBF/Schema.html +980 -0
- data/docs/DBF/Table.html +1571 -0
- data/docs/_index.html +415 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +497 -0
- data/docs/file.README.html +359 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +359 -0
- data/docs/js/app.js +314 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +675 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/dbf/column.rb +8 -7
- data/lib/dbf/column_type.rb +23 -0
- data/lib/dbf/database/foxpro.rb +7 -2
- data/lib/dbf/header.rb +11 -3
- data/lib/dbf/record.rb +5 -5
- data/lib/dbf/schema.rb +4 -3
- data/lib/dbf/table.rb +34 -11
- data/lib/dbf/version.rb +1 -1
- data/spec/dbf/column_spec.rb +3 -3
- data/spec/dbf/file_formats_spec.rb +54 -0
- data/spec/fixtures/dbase_02.dbf +0 -0
- data/spec/fixtures/dbase_02_summary.txt +23 -0
- data/spec/fixtures/dbase_32.dbf +0 -0
- data/spec/fixtures/dbase_32_summary.txt +11 -0
- data/spec/fixtures/dbase_8c.dbf +0 -0
- metadata +56 -6
- data/docs/supported_encodings.csv +0 -60
- data/docs/supported_types.markdown +0 -38
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# DBF
|
2
|
-
[![Version](
|
3
|
-
[![Build Status](
|
4
|
-
[![Code Quality](
|
5
|
-
[![Code Coverage](
|
2
|
+
[![Version](https://img.shields.io/gem/v/dbf.svg?style=flat)](https://rubygems.org/gems/dbf)
|
3
|
+
[![Build Status](https://img.shields.io/travis/infused/dbf/master.svg?style=flat)](https://travis-ci.com/infused/dbf)
|
4
|
+
[![Code Quality](https://img.shields.io/codeclimate/maintainability/infused/dbf.svg?style=flat)](https://codeclimate.com/github/infused/dbf)
|
5
|
+
[![Code Coverage](https://img.shields.io/codeclimate/c/infused/dbf.svg?style=flat)](https://codeclimate.com/github/infused/dbf)
|
6
6
|
[![Total Downloads](https://img.shields.io/gem/dt/dbf.svg)](https://rubygems.org/gems/dbf/)
|
7
7
|
[![License](https://img.shields.io/github/license/infused/dbf.svg)](https://github.com/infused/dbf)
|
8
8
|
|
9
9
|
DBF is a small fast library for reading dBase, xBase, Clipper and FoxPro
|
10
10
|
database files
|
11
11
|
|
12
|
-
* Project page: <
|
13
|
-
* API Documentation: <
|
14
|
-
* Report bugs: <
|
12
|
+
* Project page: <https://github.com/infused/dbf>
|
13
|
+
* API Documentation: <https://dbf.infused.org>
|
14
|
+
* Report bugs: <https://github.com/infused/dbf/issues>
|
15
15
|
* Questions: Email <mailto:keithm@infused.org> and put DBF somewhere in the
|
16
16
|
subject line
|
17
17
|
* Change log: <https://github.com/infused/dbf/blob/master/CHANGELOG.md>
|
@@ -26,7 +26,7 @@ please use 2.0.x (https://github.com/infused/dbf/tree/2_stable)
|
|
26
26
|
|
27
27
|
DBF is tested to work with the following versions of Ruby:
|
28
28
|
|
29
|
-
* Ruby 2.4.x, 2.5.x, 2.6.x, 2.7.x
|
29
|
+
* Ruby 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, TruffleRuby
|
30
30
|
|
31
31
|
## Installation
|
32
32
|
|
@@ -97,7 +97,7 @@ Get a hash of all attributes. The keys are the original column names.
|
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
widget.attributes
|
100
|
-
# => {"Name" => "Thing1
|
100
|
+
# => {"Name" => "Thing1 | SlotNumber" => 1}
|
101
101
|
```
|
102
102
|
|
103
103
|
Search for records using a simple hash format. Multiple search criteria are
|
@@ -148,9 +148,67 @@ data. Try using the 'Russion OEM' encoding:
|
|
148
148
|
table = DBF::Table.new('dbf/books.dbf', nil, 'cp866')
|
149
149
|
```
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
151
|
+
| Code Page | Encoding | Description |
|
152
|
+
| --------- | -------- | ----------- |
|
153
|
+
| 01 | cp437 | U.S. MS–DOS |
|
154
|
+
| 02 | cp850 | International MS–DOS |
|
155
|
+
| 03 | cp1252 | Windows ANSI |
|
156
|
+
| 08 | cp865 | Danish OEM |
|
157
|
+
| 09 | cp437 | Dutch OEM |
|
158
|
+
| 0a | cp850 | Dutch OEM* |
|
159
|
+
| 0b | cp437 | Finnish OEM |
|
160
|
+
| 0d | cp437 | French OEM |
|
161
|
+
| 0e | cp850 | French OEM* |
|
162
|
+
| 0f | cp437 | German OEM |
|
163
|
+
| 10 | cp850 | German OEM* |
|
164
|
+
| 11 | cp437 | Italian OEM |
|
165
|
+
| 12 | cp850 | Italian OEM* |
|
166
|
+
| 13 | cp932 | Japanese Shift-JIS |
|
167
|
+
| 14 | cp850 | Spanish OEM* |
|
168
|
+
| 15 | cp437 | Swedish OEM |
|
169
|
+
| 16 | cp850 | Swedish OEM* |
|
170
|
+
| 17 | cp865 | Norwegian OEM |
|
171
|
+
| 18 | cp437 | Spanish OEM |
|
172
|
+
| 19 | cp437 | English OEM (Britain) |
|
173
|
+
| 1a | cp850 | English OEM (Britain)* |
|
174
|
+
| 1b | cp437 | English OEM (U.S.) |
|
175
|
+
| 1c | cp863 | French OEM (Canada) |
|
176
|
+
| 1d | cp850 | French OEM* |
|
177
|
+
| 1f | cp852 | Czech OEM |
|
178
|
+
| 22 | cp852 | Hungarian OEM |
|
179
|
+
| 23 | cp852 | Polish OEM |
|
180
|
+
| 24 | cp860 | Portuguese OEM |
|
181
|
+
| 25 | cp850 | Portuguese OEM* |
|
182
|
+
| 26 | cp866 | Russian OEM |
|
183
|
+
| 37 | cp850 | English OEM (U.S.)* |
|
184
|
+
| 40 | cp852 | Romanian OEM |
|
185
|
+
| 4d | cp936 | Chinese GBK (PRC) |
|
186
|
+
| 4e | cp949 | Korean (ANSI/OEM) |
|
187
|
+
| 4f | cp950 | Chinese Big5 (Taiwan) |
|
188
|
+
| 50 | cp874 | Thai (ANSI/OEM) |
|
189
|
+
| 57 | cp1252 | ANSI |
|
190
|
+
| 58 | cp1252 | Western European ANSI |
|
191
|
+
| 59 | cp1252 | Spanish ANSI |
|
192
|
+
| 64 | cp852 | Eastern European MS–DOS |
|
193
|
+
| 65 | cp866 | Russian MS–DOS |
|
194
|
+
| 66 | cp865 | Nordic MS–DOS |
|
195
|
+
| 67 | cp861 | Icelandic MS–DOS |
|
196
|
+
| 6a | cp737 | Greek MS–DOS (437G) |
|
197
|
+
| 6b | cp857 | Turkish MS–DOS |
|
198
|
+
| 6c | cp863 | French–Canadian MS–DOS |
|
199
|
+
| 78 | cp950 | Taiwan Big 5 |
|
200
|
+
| 79 | cp949 | Hangul (Wansung) |
|
201
|
+
| 7a | cp936 | PRC GBK |
|
202
|
+
| 7b | cp932 | Japanese Shift-JIS |
|
203
|
+
| 7c | cp874 | Thai Windows/MS–DOS |
|
204
|
+
| 86 | cp737 | Greek OEM |
|
205
|
+
| 87 | cp852 | Slovenian OEM |
|
206
|
+
| 88 | cp857 | Turkish OEM |
|
207
|
+
| c8 | cp1250 | Eastern European Windows |
|
208
|
+
| c9 | cp1251 | Russian Windows |
|
209
|
+
| ca | cp1254 | Turkish Windows |
|
210
|
+
| cb | cp1253 | Greek Windows |
|
211
|
+
| cc | cp1257 | Baltic Windows |
|
154
212
|
|
155
213
|
## Migrating to ActiveRecord
|
156
214
|
|
@@ -264,9 +322,45 @@ supported. If you have insight into how any of the unsupported data types are
|
|
264
322
|
implemented, please give me a shout. FoxBase/dBase II files are not supported
|
265
323
|
at this time.
|
266
324
|
|
267
|
-
|
268
|
-
|
269
|
-
|
325
|
+
### Supported data types by dBase version
|
326
|
+
|
327
|
+
| Version | Description | C | N | L | D | M | F | B | G | P | Y | T | I | V | X | @ | O | + |
|
328
|
+
|---------|-----------------------------------------------------|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
329
|
+
| 02 | FoxBase | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
330
|
+
| 03 | dBase III without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
331
|
+
| 04 | dBase IV without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
332
|
+
| 05 | dBase V without memo file | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
333
|
+
| 07 | Visual Objects 1.x | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - | - |
|
334
|
+
| 30 | Visual FoxPro | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | - |
|
335
|
+
| 31 | Visual FoxPro with AutoIncrement | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
|
336
|
+
| 32 | Visual FoxPro with field type Varchar or Varbinary | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
|
337
|
+
| 7b | dBase IV with memo file | Y | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - |
|
338
|
+
| 83 | dBase III with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
|
339
|
+
| 87 | Visual Objects 1.x with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | - | - | - | - |
|
340
|
+
| 8b | dBase IV with memo file | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
|
341
|
+
| 8e | dBase IV with SQL table | Y | Y | Y | Y | Y | - | - | - | - | - | - | - | - | N | - | - | - |
|
342
|
+
| f5 | FoxPro with memo file | Y | Y | Y | Y | Y | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
|
343
|
+
| fb | FoxPro without memo file | Y | Y | Y | Y | - | Y | Y | Y | N | Y | N | Y | N | N | N | N | N |
|
344
|
+
|
345
|
+
Data type descriptions
|
346
|
+
|
347
|
+
* C = Character
|
348
|
+
* N = Number
|
349
|
+
* L = Logical
|
350
|
+
* D = Date
|
351
|
+
* M = Memo
|
352
|
+
* F = Float
|
353
|
+
* B = Binary
|
354
|
+
* G = General
|
355
|
+
* P = Picture
|
356
|
+
* Y = Currency
|
357
|
+
* T = DateTime
|
358
|
+
* I = Integer
|
359
|
+
* V = VariField
|
360
|
+
* X = SQL compat
|
361
|
+
* @ = Timestamp
|
362
|
+
* O = Double
|
363
|
+
* + = Autoincrement
|
270
364
|
|
271
365
|
## Limitations
|
272
366
|
|
@@ -275,7 +369,7 @@ for a full list of supported column types.
|
|
275
369
|
|
276
370
|
## License
|
277
371
|
|
278
|
-
Copyright (c) 2006-
|
372
|
+
Copyright (c) 2006-2021 Keith Morrison <<keithm@infused.org>>
|
279
373
|
|
280
374
|
Permission is hereby granted, free of charge, to any person
|
281
375
|
obtaining a copy of this software and associated documentation
|
data/bin/dbf
CHANGED
data/docs/CNAME
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
dbf.infused.org
|
data/docs/DBF.html
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: DBF
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.26
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "DBF";
|
19
|
+
relpath = '';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="_index.html">Index (D)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">DBF</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: DBF
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/dbf/table.rb<span class="defines">,<br />
|
82
|
+
lib/dbf/column.rb,<br /> lib/dbf/header.rb,<br /> lib/dbf/record.rb,<br /> lib/dbf/schema.rb,<br /> lib/dbf/version.rb,<br /> lib/dbf/encodings.rb,<br /> lib/dbf/memo/base.rb,<br /> lib/dbf/column_type.rb,<br /> lib/dbf/memo/dbase3.rb,<br /> lib/dbf/memo/dbase4.rb,<br /> lib/dbf/memo/foxpro.rb,<br /> lib/dbf/database/foxpro.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Defined Under Namespace</h2>
|
89
|
+
<p class="children">
|
90
|
+
|
91
|
+
|
92
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="DBF/ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span>, <span class='object_link'><a href="DBF/Database.html" title="DBF::Database (module)">Database</a></span>, <span class='object_link'><a href="DBF/Memo.html" title="DBF::Memo (module)">Memo</a></span>, <span class='object_link'><a href="DBF/Schema.html" title="DBF::Schema (module)">Schema</a></span>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="DBF/Column.html" title="DBF::Column (class)">Column</a></span>, <span class='object_link'><a href="DBF/FileNotFoundError.html" title="DBF::FileNotFoundError (class)">FileNotFoundError</a></span>, <span class='object_link'><a href="DBF/Header.html" title="DBF::Header (class)">Header</a></span>, <span class='object_link'><a href="DBF/NoColumnsDefined.html" title="DBF::NoColumnsDefined (class)">NoColumnsDefined</a></span>, <span class='object_link'><a href="DBF/Record.html" title="DBF::Record (class)">Record</a></span>, <span class='object_link'><a href="DBF/Table.html" title="DBF::Table (class)">Table</a></span>
|
97
|
+
|
98
|
+
|
99
|
+
</p>
|
100
|
+
|
101
|
+
|
102
|
+
<h2>
|
103
|
+
Constant Summary
|
104
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
105
|
+
</h2>
|
106
|
+
|
107
|
+
<dl class="constants">
|
108
|
+
|
109
|
+
<dt id="VERSION-constant" class="">VERSION =
|
110
|
+
|
111
|
+
</dt>
|
112
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>4.1.3</span><span class='tstring_end'>'</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
113
|
+
|
114
|
+
<dt id="ENCODINGS-constant" class="">ENCODINGS =
|
115
|
+
|
116
|
+
</dt>
|
117
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
118
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>01</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># U.S. MS-DOS
|
119
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>02</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># International MS-DOS
|
120
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>03</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1252</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Windows ANSI
|
121
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>08</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp865</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Danish OEM
|
122
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>09</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Dutch OEM
|
123
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0a</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Dutch OEM*
|
124
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0b</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Finnish OEM
|
125
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0d</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># French OEM
|
126
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0e</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># French OEM*
|
127
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0f</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># German OEM
|
128
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>10</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># German OEM*
|
129
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>11</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Italian OEM
|
130
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>12</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Italian OEM*
|
131
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>13</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp932</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Japanese Shift-JIS
|
132
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>14</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Spanish OEM*
|
133
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>15</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Swedish OEM
|
134
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>16</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Swedish OEM*
|
135
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>17</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp865</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Norwegian OEM
|
136
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>18</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Spanish OEM
|
137
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>19</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># English OEM (Britain)
|
138
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1a</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># English OEM (Britain)*
|
139
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1b</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp437</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># English OEM (U.S.)
|
140
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1c</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp863</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># French OEM (Canada)
|
141
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1d</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># French OEM*
|
142
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1f</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Czech OEM
|
143
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>22</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Hungarian OEM
|
144
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>23</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Polish OEM
|
145
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>24</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp860</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Portuguese OEM
|
146
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>25</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Portuguese OEM*
|
147
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>26</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp866</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Russian OEM
|
148
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>37</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp850</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># English OEM (U.S.)*
|
149
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>40</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Romanian OEM
|
150
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>4d</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp936</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Chinese GBK (PRC)
|
151
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>4e</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp949</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Korean (ANSI/OEM)
|
152
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>4f</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp950</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Chinese Big5 (Taiwan)
|
153
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>50</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp874</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Thai (ANSI/OEM)
|
154
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>57</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1252</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># ANSI
|
155
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>58</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1252</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Western European ANSI
|
156
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>59</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1252</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Spanish ANSI
|
157
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>64</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Eastern European MS-DOS
|
158
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>65</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp866</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Russian MS-DOS
|
159
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>66</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp865</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Nordic MS-DOS
|
160
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>67</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp861</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Icelandic MS-DOS
|
161
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>6a</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp737</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Greek MS-DOS (437G)
|
162
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>6b</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp857</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Turkish MS-DOS
|
163
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>6c</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp863</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># French-Canadian MS-DOS
|
164
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>78</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp950</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Taiwan Big 5
|
165
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>79</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp949</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Hangul (Wansung)
|
166
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>7a</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp936</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># PRC GBK
|
167
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>7b</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp932</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Japanese Shift-JIS
|
168
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>7c</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp874</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Thai Windows/MS-DOS
|
169
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>86</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp737</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Greek OEM
|
170
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>87</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp852</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Slovenian OEM
|
171
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>88</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp857</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Turkish OEM
|
172
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c8</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1250</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Eastern European Windows
|
173
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>c9</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1251</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Russian Windows
|
174
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ca</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1254</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Turkish Windows
|
175
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cb</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1253</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='comment'># Greek Windows
|
176
|
+
</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cc</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cp1257</span><span class='tstring_end'>'</span></span> <span class='comment'># Baltic Windows
|
177
|
+
</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
178
|
+
|
179
|
+
</dl>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
<div id="footer">
|
193
|
+
Generated on Sun Aug 8 16:19:08 2021 by
|
194
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
195
|
+
0.9.26 (ruby-3.0.1).
|
196
|
+
</div>
|
197
|
+
|
198
|
+
</div>
|
199
|
+
</body>
|
200
|
+
</html>
|
@@ -0,0 +1,947 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: DBF::Column
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.26
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "DBF::Column";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../DBF.html" title="DBF (module)">DBF</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Column</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: DBF::Column
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">DBF::Column</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
<dl>
|
89
|
+
<dt>Extended by:</dt>
|
90
|
+
<dd>Forwardable</dd>
|
91
|
+
</dl>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dl>
|
101
|
+
<dt>Defined in:</dt>
|
102
|
+
<dd>lib/dbf/column.rb</dd>
|
103
|
+
</dl>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<h2>Defined Under Namespace</h2>
|
108
|
+
<p class="children">
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Column/LengthError.html" title="DBF::Column::LengthError (class)">LengthError</a></span>, <span class='object_link'><a href="Column/NameError.html" title="DBF::Column::NameError (class)">NameError</a></span>
|
114
|
+
|
115
|
+
|
116
|
+
</p>
|
117
|
+
|
118
|
+
|
119
|
+
<h2>
|
120
|
+
Constant Summary
|
121
|
+
<small><a href="#" class="constants_summary_toggle">collapse</a></small>
|
122
|
+
</h2>
|
123
|
+
|
124
|
+
<dl class="constants">
|
125
|
+
|
126
|
+
<dt id="TYPE_CAST_CLASS-constant" class="">TYPE_CAST_CLASS =
|
127
|
+
|
128
|
+
</dt>
|
129
|
+
<dd><pre class="code"><span class='lbrace'>{</span>
|
130
|
+
<span class='label'>N:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Number.html" title="DBF::ColumnType::Number (class)">Number</a></span></span><span class='comma'>,</span>
|
131
|
+
<span class='label'>I:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/SignedLong.html" title="DBF::ColumnType::SignedLong (class)">SignedLong</a></span></span><span class='comma'>,</span>
|
132
|
+
<span class='label'>F:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Float.html" title="DBF::ColumnType::Float (class)">Float</a></span></span><span class='comma'>,</span>
|
133
|
+
<span class='label'>Y:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Currency.html" title="DBF::ColumnType::Currency (class)">Currency</a></span></span><span class='comma'>,</span>
|
134
|
+
<span class='label'>D:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Date.html" title="DBF::ColumnType::Date (class)">Date</a></span></span><span class='comma'>,</span>
|
135
|
+
<span class='label'>T:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/DateTime.html" title="DBF::ColumnType::DateTime (class)">DateTime</a></span></span><span class='comma'>,</span>
|
136
|
+
<span class='label'>L:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Boolean.html" title="DBF::ColumnType::Boolean (class)">Boolean</a></span></span><span class='comma'>,</span>
|
137
|
+
<span class='label'>M:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Memo.html" title="DBF::ColumnType::Memo (class)">Memo</a></span></span><span class='comma'>,</span>
|
138
|
+
<span class='label'>B:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/Double.html" title="DBF::ColumnType::Double (class)">Double</a></span></span><span class='comma'>,</span>
|
139
|
+
<span class='label'>G:</span> <span class='const'><span class='object_link'><a href="ColumnType.html" title="DBF::ColumnType (module)">ColumnType</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="ColumnType/General.html" title="DBF::ColumnType::General (class)">General</a></span></span>
|
140
|
+
<span class='rbrace'>}</span></pre></dd>
|
141
|
+
|
142
|
+
</dl>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
149
|
+
<ul class="summary">
|
150
|
+
|
151
|
+
<li class="public ">
|
152
|
+
<span class="summary_signature">
|
153
|
+
|
154
|
+
<a href="#decimal-instance_method" title="#decimal (instance method)">#<strong>decimal</strong> ⇒ Object </a>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
</span>
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<span class="note title readonly">readonly</span>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<span class="summary_desc"><div class='inline'>
|
174
|
+
<p>Returns the value of attribute decimal.</p>
|
175
|
+
</div></span>
|
176
|
+
|
177
|
+
</li>
|
178
|
+
|
179
|
+
|
180
|
+
<li class="public ">
|
181
|
+
<span class="summary_signature">
|
182
|
+
|
183
|
+
<a href="#length-instance_method" title="#length (instance method)">#<strong>length</strong> ⇒ Object </a>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</span>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="note title readonly">readonly</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
203
|
+
<p>Returns the value of attribute length.</p>
|
204
|
+
</div></span>
|
205
|
+
|
206
|
+
</li>
|
207
|
+
|
208
|
+
|
209
|
+
<li class="public ">
|
210
|
+
<span class="summary_signature">
|
211
|
+
|
212
|
+
<a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> ⇒ Object </a>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
</span>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<span class="note title readonly">readonly</span>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
<span class="summary_desc"><div class='inline'>
|
232
|
+
<p>Returns the value of attribute name.</p>
|
233
|
+
</div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#table-instance_method" title="#table (instance method)">#<strong>table</strong> ⇒ Object </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
<span class="note title readonly">readonly</span>
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
<span class="summary_desc"><div class='inline'>
|
261
|
+
<p>Returns the value of attribute table.</p>
|
262
|
+
</div></span>
|
263
|
+
|
264
|
+
</li>
|
265
|
+
|
266
|
+
|
267
|
+
<li class="public ">
|
268
|
+
<span class="summary_signature">
|
269
|
+
|
270
|
+
<a href="#type-instance_method" title="#type (instance method)">#<strong>type</strong> ⇒ Object </a>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
</span>
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
<span class="note title readonly">readonly</span>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<span class="summary_desc"><div class='inline'>
|
290
|
+
<p>Returns the value of attribute type.</p>
|
291
|
+
</div></span>
|
292
|
+
|
293
|
+
</li>
|
294
|
+
|
295
|
+
|
296
|
+
</ul>
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<h2>
|
303
|
+
Instance Method Summary
|
304
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
305
|
+
</h2>
|
306
|
+
|
307
|
+
<ul class="summary">
|
308
|
+
|
309
|
+
<li class="public ">
|
310
|
+
<span class="summary_signature">
|
311
|
+
|
312
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(table, name, type, length, decimal) ⇒ Column </a>
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
</span>
|
317
|
+
|
318
|
+
|
319
|
+
<span class="note title constructor">constructor</span>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
<span class="summary_desc"><div class='inline'>
|
329
|
+
<p>Initialize a new DBF::Column.</p>
|
330
|
+
</div></span>
|
331
|
+
|
332
|
+
</li>
|
333
|
+
|
334
|
+
|
335
|
+
<li class="public ">
|
336
|
+
<span class="summary_signature">
|
337
|
+
|
338
|
+
<a href="#memo%3F-instance_method" title="#memo? (instance method)">#<strong>memo?</strong> ⇒ Boolean </a>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
</span>
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
<span class="summary_desc"><div class='inline'>
|
353
|
+
<p>Returns true if the column is a memo.</p>
|
354
|
+
</div></span>
|
355
|
+
|
356
|
+
</li>
|
357
|
+
|
358
|
+
|
359
|
+
<li class="public ">
|
360
|
+
<span class="summary_signature">
|
361
|
+
|
362
|
+
<a href="#to_hash-instance_method" title="#to_hash (instance method)">#<strong>to_hash</strong> ⇒ Hash </a>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
</span>
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
<span class="summary_desc"><div class='inline'>
|
377
|
+
<p>Returns a Hash with :name, :type, :length, and :decimal keys.</p>
|
378
|
+
</div></span>
|
379
|
+
|
380
|
+
</li>
|
381
|
+
|
382
|
+
|
383
|
+
<li class="public ">
|
384
|
+
<span class="summary_signature">
|
385
|
+
|
386
|
+
<a href="#underscored_name-instance_method" title="#underscored_name (instance method)">#<strong>underscored_name</strong> ⇒ String </a>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
</span>
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
<span class="summary_desc"><div class='inline'>
|
401
|
+
<p>Underscored name.</p>
|
402
|
+
</div></span>
|
403
|
+
|
404
|
+
</li>
|
405
|
+
|
406
|
+
|
407
|
+
</ul>
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
<div id="constructor_details" class="method_details_list">
|
412
|
+
<h2>Constructor Details</h2>
|
413
|
+
|
414
|
+
<div class="method_details first">
|
415
|
+
<h3 class="signature first" id="initialize-instance_method">
|
416
|
+
|
417
|
+
#<strong>initialize</strong>(table, name, type, length, decimal) ⇒ <tt><span class='object_link'><a href="" title="DBF::Column (class)">Column</a></span></tt>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
</h3><div class="docstring">
|
424
|
+
<div class="discussion">
|
425
|
+
|
426
|
+
<p>Initialize a new DBF::Column</p>
|
427
|
+
|
428
|
+
|
429
|
+
</div>
|
430
|
+
</div>
|
431
|
+
<div class="tags">
|
432
|
+
<p class="tag_title">Parameters:</p>
|
433
|
+
<ul class="param">
|
434
|
+
|
435
|
+
<li>
|
436
|
+
|
437
|
+
<span class='name'>table</span>
|
438
|
+
|
439
|
+
|
440
|
+
<span class='type'>(<tt>String</tt>)</span>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
</li>
|
445
|
+
|
446
|
+
<li>
|
447
|
+
|
448
|
+
<span class='name'>name</span>
|
449
|
+
|
450
|
+
|
451
|
+
<span class='type'>(<tt>String</tt>)</span>
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
<li>
|
458
|
+
|
459
|
+
<span class='name'>type</span>
|
460
|
+
|
461
|
+
|
462
|
+
<span class='type'>(<tt>String</tt>)</span>
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
</li>
|
467
|
+
|
468
|
+
<li>
|
469
|
+
|
470
|
+
<span class='name'>length</span>
|
471
|
+
|
472
|
+
|
473
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
</li>
|
478
|
+
|
479
|
+
<li>
|
480
|
+
|
481
|
+
<span class='name'>decimal</span>
|
482
|
+
|
483
|
+
|
484
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
</li>
|
489
|
+
|
490
|
+
</ul>
|
491
|
+
|
492
|
+
|
493
|
+
</div><table class="source_code">
|
494
|
+
<tr>
|
495
|
+
<td>
|
496
|
+
<pre class="lines">
|
497
|
+
|
498
|
+
|
499
|
+
36
|
500
|
+
37
|
501
|
+
38
|
502
|
+
39
|
503
|
+
40
|
504
|
+
41
|
505
|
+
42
|
506
|
+
43
|
507
|
+
44
|
508
|
+
45
|
509
|
+
46
|
510
|
+
47</pre>
|
511
|
+
</td>
|
512
|
+
<td>
|
513
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 36</span>
|
514
|
+
|
515
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='id identifier rubyid_decimal'>decimal</span><span class='rparen'>)</span>
|
516
|
+
<span class='ivar'>@table</span> <span class='op'>=</span> <span class='id identifier rubyid_table'>table</span>
|
517
|
+
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_clean'>clean</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
518
|
+
<span class='ivar'>@type</span> <span class='op'>=</span> <span class='id identifier rubyid_type'>type</span>
|
519
|
+
<span class='ivar'>@length</span> <span class='op'>=</span> <span class='id identifier rubyid_length'>length</span>
|
520
|
+
<span class='ivar'>@decimal</span> <span class='op'>=</span> <span class='id identifier rubyid_decimal'>decimal</span>
|
521
|
+
<span class='ivar'>@version</span> <span class='op'>=</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_version'>version</span>
|
522
|
+
<span class='ivar'>@encoding</span> <span class='op'>=</span> <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_encoding'>encoding</span>
|
523
|
+
|
524
|
+
<span class='id identifier rubyid_validate_length'>validate_length</span>
|
525
|
+
<span class='id identifier rubyid_validate_name'>validate_name</span>
|
526
|
+
<span class='kw'>end</span></pre>
|
527
|
+
</td>
|
528
|
+
</tr>
|
529
|
+
</table>
|
530
|
+
</div>
|
531
|
+
|
532
|
+
</div>
|
533
|
+
|
534
|
+
<div id="instance_attr_details" class="attr_details">
|
535
|
+
<h2>Instance Attribute Details</h2>
|
536
|
+
|
537
|
+
|
538
|
+
<span id=""></span>
|
539
|
+
<div class="method_details first">
|
540
|
+
<h3 class="signature first" id="decimal-instance_method">
|
541
|
+
|
542
|
+
#<strong>decimal</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
</h3><div class="docstring">
|
549
|
+
<div class="discussion">
|
550
|
+
|
551
|
+
<p>Returns the value of attribute decimal.</p>
|
552
|
+
|
553
|
+
|
554
|
+
</div>
|
555
|
+
</div>
|
556
|
+
<div class="tags">
|
557
|
+
|
558
|
+
|
559
|
+
</div><table class="source_code">
|
560
|
+
<tr>
|
561
|
+
<td>
|
562
|
+
<pre class="lines">
|
563
|
+
|
564
|
+
|
565
|
+
11
|
566
|
+
12
|
567
|
+
13</pre>
|
568
|
+
</td>
|
569
|
+
<td>
|
570
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 11</span>
|
571
|
+
|
572
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_decimal'>decimal</span>
|
573
|
+
<span class='ivar'>@decimal</span>
|
574
|
+
<span class='kw'>end</span></pre>
|
575
|
+
</td>
|
576
|
+
</tr>
|
577
|
+
</table>
|
578
|
+
</div>
|
579
|
+
|
580
|
+
|
581
|
+
<span id=""></span>
|
582
|
+
<div class="method_details ">
|
583
|
+
<h3 class="signature " id="length-instance_method">
|
584
|
+
|
585
|
+
#<strong>length</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
586
|
+
|
587
|
+
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
</h3><div class="docstring">
|
592
|
+
<div class="discussion">
|
593
|
+
|
594
|
+
<p>Returns the value of attribute length.</p>
|
595
|
+
|
596
|
+
|
597
|
+
</div>
|
598
|
+
</div>
|
599
|
+
<div class="tags">
|
600
|
+
|
601
|
+
|
602
|
+
</div><table class="source_code">
|
603
|
+
<tr>
|
604
|
+
<td>
|
605
|
+
<pre class="lines">
|
606
|
+
|
607
|
+
|
608
|
+
11
|
609
|
+
12
|
610
|
+
13</pre>
|
611
|
+
</td>
|
612
|
+
<td>
|
613
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 11</span>
|
614
|
+
|
615
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_length'>length</span>
|
616
|
+
<span class='ivar'>@length</span>
|
617
|
+
<span class='kw'>end</span></pre>
|
618
|
+
</td>
|
619
|
+
</tr>
|
620
|
+
</table>
|
621
|
+
</div>
|
622
|
+
|
623
|
+
|
624
|
+
<span id=""></span>
|
625
|
+
<div class="method_details ">
|
626
|
+
<h3 class="signature " id="name-instance_method">
|
627
|
+
|
628
|
+
#<strong>name</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
</h3><div class="docstring">
|
635
|
+
<div class="discussion">
|
636
|
+
|
637
|
+
<p>Returns the value of attribute name.</p>
|
638
|
+
|
639
|
+
|
640
|
+
</div>
|
641
|
+
</div>
|
642
|
+
<div class="tags">
|
643
|
+
|
644
|
+
|
645
|
+
</div><table class="source_code">
|
646
|
+
<tr>
|
647
|
+
<td>
|
648
|
+
<pre class="lines">
|
649
|
+
|
650
|
+
|
651
|
+
11
|
652
|
+
12
|
653
|
+
13</pre>
|
654
|
+
</td>
|
655
|
+
<td>
|
656
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 11</span>
|
657
|
+
|
658
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
659
|
+
<span class='ivar'>@name</span>
|
660
|
+
<span class='kw'>end</span></pre>
|
661
|
+
</td>
|
662
|
+
</tr>
|
663
|
+
</table>
|
664
|
+
</div>
|
665
|
+
|
666
|
+
|
667
|
+
<span id=""></span>
|
668
|
+
<div class="method_details ">
|
669
|
+
<h3 class="signature " id="table-instance_method">
|
670
|
+
|
671
|
+
#<strong>table</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
</h3><div class="docstring">
|
678
|
+
<div class="discussion">
|
679
|
+
|
680
|
+
<p>Returns the value of attribute table.</p>
|
681
|
+
|
682
|
+
|
683
|
+
</div>
|
684
|
+
</div>
|
685
|
+
<div class="tags">
|
686
|
+
|
687
|
+
|
688
|
+
</div><table class="source_code">
|
689
|
+
<tr>
|
690
|
+
<td>
|
691
|
+
<pre class="lines">
|
692
|
+
|
693
|
+
|
694
|
+
11
|
695
|
+
12
|
696
|
+
13</pre>
|
697
|
+
</td>
|
698
|
+
<td>
|
699
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 11</span>
|
700
|
+
|
701
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_table'>table</span>
|
702
|
+
<span class='ivar'>@table</span>
|
703
|
+
<span class='kw'>end</span></pre>
|
704
|
+
</td>
|
705
|
+
</tr>
|
706
|
+
</table>
|
707
|
+
</div>
|
708
|
+
|
709
|
+
|
710
|
+
<span id=""></span>
|
711
|
+
<div class="method_details ">
|
712
|
+
<h3 class="signature " id="type-instance_method">
|
713
|
+
|
714
|
+
#<strong>type</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
</h3><div class="docstring">
|
721
|
+
<div class="discussion">
|
722
|
+
|
723
|
+
<p>Returns the value of attribute type.</p>
|
724
|
+
|
725
|
+
|
726
|
+
</div>
|
727
|
+
</div>
|
728
|
+
<div class="tags">
|
729
|
+
|
730
|
+
|
731
|
+
</div><table class="source_code">
|
732
|
+
<tr>
|
733
|
+
<td>
|
734
|
+
<pre class="lines">
|
735
|
+
|
736
|
+
|
737
|
+
11
|
738
|
+
12
|
739
|
+
13</pre>
|
740
|
+
</td>
|
741
|
+
<td>
|
742
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 11</span>
|
743
|
+
|
744
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_type'>type</span>
|
745
|
+
<span class='ivar'>@type</span>
|
746
|
+
<span class='kw'>end</span></pre>
|
747
|
+
</td>
|
748
|
+
</tr>
|
749
|
+
</table>
|
750
|
+
</div>
|
751
|
+
|
752
|
+
</div>
|
753
|
+
|
754
|
+
|
755
|
+
<div id="instance_method_details" class="method_details_list">
|
756
|
+
<h2>Instance Method Details</h2>
|
757
|
+
|
758
|
+
|
759
|
+
<div class="method_details first">
|
760
|
+
<h3 class="signature first" id="memo?-instance_method">
|
761
|
+
|
762
|
+
#<strong>memo?</strong> ⇒ <tt>Boolean</tt>
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
</h3><div class="docstring">
|
769
|
+
<div class="discussion">
|
770
|
+
|
771
|
+
<p>Returns true if the column is a memo</p>
|
772
|
+
|
773
|
+
|
774
|
+
</div>
|
775
|
+
</div>
|
776
|
+
<div class="tags">
|
777
|
+
|
778
|
+
<p class="tag_title">Returns:</p>
|
779
|
+
<ul class="return">
|
780
|
+
|
781
|
+
<li>
|
782
|
+
|
783
|
+
|
784
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
</li>
|
789
|
+
|
790
|
+
</ul>
|
791
|
+
|
792
|
+
</div><table class="source_code">
|
793
|
+
<tr>
|
794
|
+
<td>
|
795
|
+
<pre class="lines">
|
796
|
+
|
797
|
+
|
798
|
+
52
|
799
|
+
53
|
800
|
+
54</pre>
|
801
|
+
</td>
|
802
|
+
<td>
|
803
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 52</span>
|
804
|
+
|
805
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_memo?'>memo?</span>
|
806
|
+
<span class='ivar'>@memo</span> <span class='op'>||=</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>M</span><span class='tstring_end'>'</span></span>
|
807
|
+
<span class='kw'>end</span></pre>
|
808
|
+
</td>
|
809
|
+
</tr>
|
810
|
+
</table>
|
811
|
+
</div>
|
812
|
+
|
813
|
+
<div class="method_details ">
|
814
|
+
<h3 class="signature " id="to_hash-instance_method">
|
815
|
+
|
816
|
+
#<strong>to_hash</strong> ⇒ <tt>Hash</tt>
|
817
|
+
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
</h3><div class="docstring">
|
823
|
+
<div class="discussion">
|
824
|
+
|
825
|
+
<p>Returns a Hash with :name, :type, :length, and :decimal keys</p>
|
826
|
+
|
827
|
+
|
828
|
+
</div>
|
829
|
+
</div>
|
830
|
+
<div class="tags">
|
831
|
+
|
832
|
+
<p class="tag_title">Returns:</p>
|
833
|
+
<ul class="return">
|
834
|
+
|
835
|
+
<li>
|
836
|
+
|
837
|
+
|
838
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
839
|
+
|
840
|
+
|
841
|
+
|
842
|
+
</li>
|
843
|
+
|
844
|
+
</ul>
|
845
|
+
|
846
|
+
</div><table class="source_code">
|
847
|
+
<tr>
|
848
|
+
<td>
|
849
|
+
<pre class="lines">
|
850
|
+
|
851
|
+
|
852
|
+
59
|
853
|
+
60
|
854
|
+
61</pre>
|
855
|
+
</td>
|
856
|
+
<td>
|
857
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 59</span>
|
858
|
+
|
859
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
|
860
|
+
<span class='lbrace'>{</span><span class='label'>name:</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='label'>type:</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='label'>length:</span> <span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='label'>decimal:</span> <span class='id identifier rubyid_decimal'>decimal</span><span class='rbrace'>}</span>
|
861
|
+
<span class='kw'>end</span></pre>
|
862
|
+
</td>
|
863
|
+
</tr>
|
864
|
+
</table>
|
865
|
+
</div>
|
866
|
+
|
867
|
+
<div class="method_details ">
|
868
|
+
<h3 class="signature " id="underscored_name-instance_method">
|
869
|
+
|
870
|
+
#<strong>underscored_name</strong> ⇒ <tt>String</tt>
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
</h3><div class="docstring">
|
877
|
+
<div class="discussion">
|
878
|
+
|
879
|
+
<p>Underscored name</p>
|
880
|
+
|
881
|
+
<p>This is the column name converted to underscore format. For example, MyColumn will be returned as my_column.</p>
|
882
|
+
|
883
|
+
|
884
|
+
</div>
|
885
|
+
</div>
|
886
|
+
<div class="tags">
|
887
|
+
|
888
|
+
<p class="tag_title">Returns:</p>
|
889
|
+
<ul class="return">
|
890
|
+
|
891
|
+
<li>
|
892
|
+
|
893
|
+
|
894
|
+
<span class='type'>(<tt>String</tt>)</span>
|
895
|
+
|
896
|
+
|
897
|
+
|
898
|
+
</li>
|
899
|
+
|
900
|
+
</ul>
|
901
|
+
|
902
|
+
</div><table class="source_code">
|
903
|
+
<tr>
|
904
|
+
<td>
|
905
|
+
<pre class="lines">
|
906
|
+
|
907
|
+
|
908
|
+
69
|
909
|
+
70
|
910
|
+
71
|
911
|
+
72
|
912
|
+
73
|
913
|
+
74
|
914
|
+
75
|
915
|
+
76
|
916
|
+
77</pre>
|
917
|
+
</td>
|
918
|
+
<td>
|
919
|
+
<pre class="code"><span class="info file"># File 'lib/dbf/column.rb', line 69</span>
|
920
|
+
|
921
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_underscored_name'>underscored_name</span>
|
922
|
+
<span class='ivar'>@underscored_name</span> <span class='op'>||=</span> <span class='kw'>begin</span>
|
923
|
+
<span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>::</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
924
|
+
<span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>([A-Z]+)([A-Z][a-z])</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\1_\2</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
925
|
+
<span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>([a-z\d])([A-Z])</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\1_\2</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
926
|
+
<span class='period'>.</span><span class='id identifier rubyid_tr'>tr</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>-</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
927
|
+
<span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
|
928
|
+
<span class='kw'>end</span>
|
929
|
+
<span class='kw'>end</span></pre>
|
930
|
+
</td>
|
931
|
+
</tr>
|
932
|
+
</table>
|
933
|
+
</div>
|
934
|
+
|
935
|
+
</div>
|
936
|
+
|
937
|
+
</div>
|
938
|
+
|
939
|
+
<div id="footer">
|
940
|
+
Generated on Sun Aug 8 16:19:08 2021 by
|
941
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
942
|
+
0.9.26 (ruby-3.0.1).
|
943
|
+
</div>
|
944
|
+
|
945
|
+
</div>
|
946
|
+
</body>
|
947
|
+
</html>
|