steep 0.13.0 → 0.16.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +0 -3
  3. data/CHANGELOG.md +28 -0
  4. data/Rakefile +0 -13
  5. data/bin/setup +0 -2
  6. data/bin/smoke_runner.rb +0 -1
  7. data/exe/steep +0 -1
  8. data/lib/steep.rb +33 -1
  9. data/lib/steep/annotation_parser.rb +4 -4
  10. data/lib/steep/ast/buffer.rb +11 -7
  11. data/lib/steep/ast/builtin.rb +8 -0
  12. data/lib/steep/ast/types/factory.rb +124 -89
  13. data/lib/steep/cli.rb +16 -1
  14. data/lib/steep/drivers/annotations.rb +1 -1
  15. data/lib/steep/drivers/check.rb +20 -4
  16. data/lib/steep/drivers/init.rb +5 -5
  17. data/lib/steep/drivers/langserver.rb +13 -287
  18. data/lib/steep/drivers/utils/driver_helper.rb +1 -1
  19. data/lib/steep/drivers/vendor.rb +2 -2
  20. data/lib/steep/drivers/watch.rb +97 -85
  21. data/lib/steep/drivers/worker.rb +51 -0
  22. data/lib/steep/project.rb +9 -5
  23. data/lib/steep/project/completion_provider.rb +298 -0
  24. data/lib/steep/project/dsl.rb +14 -0
  25. data/lib/steep/project/file.rb +54 -47
  26. data/lib/steep/project/hover_content.rb +17 -8
  27. data/lib/steep/project/options.rb +25 -3
  28. data/lib/steep/project/target.rb +40 -24
  29. data/lib/steep/server/base_worker.rb +56 -0
  30. data/lib/steep/server/code_worker.rb +151 -0
  31. data/lib/steep/server/interaction_worker.rb +281 -0
  32. data/lib/steep/server/master.rb +196 -0
  33. data/lib/steep/server/signature_worker.rb +148 -0
  34. data/lib/steep/server/utils.rb +36 -0
  35. data/lib/steep/server/worker_process.rb +62 -0
  36. data/lib/steep/signature/errors.rb +1 -1
  37. data/lib/steep/signature/validator.rb +13 -13
  38. data/lib/steep/source.rb +1 -1
  39. data/lib/steep/type_construction.rb +1004 -727
  40. data/lib/steep/type_inference/constant_env.rb +3 -11
  41. data/lib/steep/type_inference/context.rb +8 -3
  42. data/lib/steep/type_inference/context_array.rb +111 -0
  43. data/lib/steep/type_inference/local_variable_type_env.rb +226 -0
  44. data/lib/steep/type_inference/logic.rb +130 -0
  45. data/lib/steep/type_inference/type_env.rb +5 -69
  46. data/lib/steep/typing.rb +91 -23
  47. data/lib/steep/version.rb +1 -1
  48. data/smoke/alias/Steepfile +1 -0
  49. data/smoke/alias/a.rb +1 -1
  50. data/smoke/and/Steepfile +1 -0
  51. data/smoke/array/Steepfile +1 -0
  52. data/smoke/array/b.rb +0 -2
  53. data/smoke/block/Steepfile +1 -0
  54. data/smoke/case/Steepfile +1 -0
  55. data/smoke/class/Steepfile +1 -0
  56. data/smoke/const/Steepfile +1 -0
  57. data/smoke/dstr/Steepfile +1 -0
  58. data/smoke/ensure/Steepfile +1 -0
  59. data/smoke/enumerator/Steepfile +1 -0
  60. data/smoke/extension/Steepfile +1 -0
  61. data/smoke/extension/c.rb +1 -0
  62. data/smoke/hash/Steepfile +1 -0
  63. data/smoke/hello/Steepfile +1 -0
  64. data/smoke/if/Steepfile +1 -0
  65. data/smoke/if/a.rb +1 -1
  66. data/smoke/implements/Steepfile +1 -0
  67. data/smoke/initialize/Steepfile +1 -0
  68. data/smoke/integer/Steepfile +1 -0
  69. data/smoke/interface/Steepfile +1 -0
  70. data/smoke/kwbegin/Steepfile +1 -0
  71. data/smoke/lambda/Steepfile +1 -0
  72. data/smoke/literal/Steepfile +1 -0
  73. data/smoke/map/Steepfile +1 -0
  74. data/smoke/method/Steepfile +1 -0
  75. data/smoke/module/Steepfile +1 -0
  76. data/smoke/regexp/Steepfile +1 -0
  77. data/smoke/regexp/b.rb +4 -4
  78. data/smoke/regression/Steepfile +1 -0
  79. data/smoke/rescue/Steepfile +1 -0
  80. data/smoke/rescue/a.rb +1 -1
  81. data/smoke/self/Steepfile +1 -0
  82. data/smoke/skip/Steepfile +1 -0
  83. data/smoke/stdout/Steepfile +1 -0
  84. data/smoke/super/Steepfile +1 -0
  85. data/smoke/type_case/Steepfile +1 -0
  86. data/smoke/yield/Steepfile +1 -0
  87. data/steep.gemspec +8 -8
  88. metadata +38 -138
  89. data/exe/rbs +0 -3
  90. data/exe/ruby-signature +0 -3
  91. data/vendor/ruby-signature/.github/workflows/ruby.yml +0 -27
  92. data/vendor/ruby-signature/.gitignore +0 -12
  93. data/vendor/ruby-signature/.rubocop.yml +0 -15
  94. data/vendor/ruby-signature/BSDL +0 -22
  95. data/vendor/ruby-signature/COPYING +0 -56
  96. data/vendor/ruby-signature/Gemfile +0 -6
  97. data/vendor/ruby-signature/README.md +0 -93
  98. data/vendor/ruby-signature/Rakefile +0 -66
  99. data/vendor/ruby-signature/bin/annotate-with-rdoc +0 -156
  100. data/vendor/ruby-signature/bin/console +0 -14
  101. data/vendor/ruby-signature/bin/query-rdoc +0 -103
  102. data/vendor/ruby-signature/bin/setup +0 -10
  103. data/vendor/ruby-signature/bin/sort +0 -88
  104. data/vendor/ruby-signature/bin/test_runner.rb +0 -17
  105. data/vendor/ruby-signature/docs/CONTRIBUTING.md +0 -97
  106. data/vendor/ruby-signature/docs/sigs.md +0 -148
  107. data/vendor/ruby-signature/docs/stdlib.md +0 -152
  108. data/vendor/ruby-signature/docs/syntax.md +0 -528
  109. data/vendor/ruby-signature/exe/rbs +0 -3
  110. data/vendor/ruby-signature/exe/ruby-signature +0 -7
  111. data/vendor/ruby-signature/lib/ruby/signature.rb +0 -64
  112. data/vendor/ruby-signature/lib/ruby/signature/ast/annotation.rb +0 -29
  113. data/vendor/ruby-signature/lib/ruby/signature/ast/comment.rb +0 -29
  114. data/vendor/ruby-signature/lib/ruby/signature/ast/declarations.rb +0 -391
  115. data/vendor/ruby-signature/lib/ruby/signature/ast/members.rb +0 -364
  116. data/vendor/ruby-signature/lib/ruby/signature/buffer.rb +0 -52
  117. data/vendor/ruby-signature/lib/ruby/signature/builtin_names.rb +0 -54
  118. data/vendor/ruby-signature/lib/ruby/signature/cli.rb +0 -534
  119. data/vendor/ruby-signature/lib/ruby/signature/constant.rb +0 -28
  120. data/vendor/ruby-signature/lib/ruby/signature/constant_table.rb +0 -152
  121. data/vendor/ruby-signature/lib/ruby/signature/definition.rb +0 -172
  122. data/vendor/ruby-signature/lib/ruby/signature/definition_builder.rb +0 -921
  123. data/vendor/ruby-signature/lib/ruby/signature/environment.rb +0 -283
  124. data/vendor/ruby-signature/lib/ruby/signature/environment_loader.rb +0 -138
  125. data/vendor/ruby-signature/lib/ruby/signature/environment_walker.rb +0 -126
  126. data/vendor/ruby-signature/lib/ruby/signature/errors.rb +0 -189
  127. data/vendor/ruby-signature/lib/ruby/signature/location.rb +0 -104
  128. data/vendor/ruby-signature/lib/ruby/signature/method_type.rb +0 -125
  129. data/vendor/ruby-signature/lib/ruby/signature/namespace.rb +0 -93
  130. data/vendor/ruby-signature/lib/ruby/signature/parser.y +0 -1343
  131. data/vendor/ruby-signature/lib/ruby/signature/prototype/rb.rb +0 -441
  132. data/vendor/ruby-signature/lib/ruby/signature/prototype/rbi.rb +0 -579
  133. data/vendor/ruby-signature/lib/ruby/signature/prototype/runtime.rb +0 -383
  134. data/vendor/ruby-signature/lib/ruby/signature/substitution.rb +0 -48
  135. data/vendor/ruby-signature/lib/ruby/signature/test.rb +0 -28
  136. data/vendor/ruby-signature/lib/ruby/signature/test/errors.rb +0 -63
  137. data/vendor/ruby-signature/lib/ruby/signature/test/hook.rb +0 -290
  138. data/vendor/ruby-signature/lib/ruby/signature/test/setup.rb +0 -58
  139. data/vendor/ruby-signature/lib/ruby/signature/test/spy.rb +0 -324
  140. data/vendor/ruby-signature/lib/ruby/signature/test/test_helper.rb +0 -185
  141. data/vendor/ruby-signature/lib/ruby/signature/test/type_check.rb +0 -256
  142. data/vendor/ruby-signature/lib/ruby/signature/type_name.rb +0 -72
  143. data/vendor/ruby-signature/lib/ruby/signature/types.rb +0 -932
  144. data/vendor/ruby-signature/lib/ruby/signature/variance_calculator.rb +0 -140
  145. data/vendor/ruby-signature/lib/ruby/signature/vendorer.rb +0 -49
  146. data/vendor/ruby-signature/lib/ruby/signature/version.rb +0 -5
  147. data/vendor/ruby-signature/lib/ruby/signature/writer.rb +0 -271
  148. data/vendor/ruby-signature/ruby-signature.gemspec +0 -45
  149. data/vendor/ruby-signature/stdlib/abbrev/abbrev.rbs +0 -3
  150. data/vendor/ruby-signature/stdlib/base64/base64.rbs +0 -15
  151. data/vendor/ruby-signature/stdlib/builtin/array.rbs +0 -1997
  152. data/vendor/ruby-signature/stdlib/builtin/basic_object.rbs +0 -280
  153. data/vendor/ruby-signature/stdlib/builtin/binding.rbs +0 -177
  154. data/vendor/ruby-signature/stdlib/builtin/builtin.rbs +0 -35
  155. data/vendor/ruby-signature/stdlib/builtin/class.rbs +0 -145
  156. data/vendor/ruby-signature/stdlib/builtin/comparable.rbs +0 -116
  157. data/vendor/ruby-signature/stdlib/builtin/complex.rbs +0 -400
  158. data/vendor/ruby-signature/stdlib/builtin/constants.rbs +0 -37
  159. data/vendor/ruby-signature/stdlib/builtin/data.rbs +0 -5
  160. data/vendor/ruby-signature/stdlib/builtin/deprecated.rbs +0 -2
  161. data/vendor/ruby-signature/stdlib/builtin/dir.rbs +0 -419
  162. data/vendor/ruby-signature/stdlib/builtin/encoding.rbs +0 -606
  163. data/vendor/ruby-signature/stdlib/builtin/enumerable.rbs +0 -404
  164. data/vendor/ruby-signature/stdlib/builtin/enumerator.rbs +0 -260
  165. data/vendor/ruby-signature/stdlib/builtin/errno.rbs +0 -781
  166. data/vendor/ruby-signature/stdlib/builtin/errors.rbs +0 -582
  167. data/vendor/ruby-signature/stdlib/builtin/exception.rbs +0 -193
  168. data/vendor/ruby-signature/stdlib/builtin/false_class.rbs +0 -40
  169. data/vendor/ruby-signature/stdlib/builtin/fiber.rbs +0 -68
  170. data/vendor/ruby-signature/stdlib/builtin/fiber_error.rbs +0 -12
  171. data/vendor/ruby-signature/stdlib/builtin/file.rbs +0 -476
  172. data/vendor/ruby-signature/stdlib/builtin/file_test.rbs +0 -59
  173. data/vendor/ruby-signature/stdlib/builtin/float.rbs +0 -696
  174. data/vendor/ruby-signature/stdlib/builtin/gc.rbs +0 -121
  175. data/vendor/ruby-signature/stdlib/builtin/hash.rbs +0 -1029
  176. data/vendor/ruby-signature/stdlib/builtin/integer.rbs +0 -710
  177. data/vendor/ruby-signature/stdlib/builtin/io.rbs +0 -683
  178. data/vendor/ruby-signature/stdlib/builtin/kernel.rbs +0 -574
  179. data/vendor/ruby-signature/stdlib/builtin/marshal.rbs +0 -135
  180. data/vendor/ruby-signature/stdlib/builtin/match_data.rbs +0 -141
  181. data/vendor/ruby-signature/stdlib/builtin/math.rbs +0 -66
  182. data/vendor/ruby-signature/stdlib/builtin/method.rbs +0 -182
  183. data/vendor/ruby-signature/stdlib/builtin/module.rbs +0 -248
  184. data/vendor/ruby-signature/stdlib/builtin/nil_class.rbs +0 -82
  185. data/vendor/ruby-signature/stdlib/builtin/numeric.rbs +0 -409
  186. data/vendor/ruby-signature/stdlib/builtin/object.rbs +0 -824
  187. data/vendor/ruby-signature/stdlib/builtin/proc.rbs +0 -426
  188. data/vendor/ruby-signature/stdlib/builtin/process.rbs +0 -354
  189. data/vendor/ruby-signature/stdlib/builtin/random.rbs +0 -93
  190. data/vendor/ruby-signature/stdlib/builtin/range.rbs +0 -226
  191. data/vendor/ruby-signature/stdlib/builtin/rational.rbs +0 -424
  192. data/vendor/ruby-signature/stdlib/builtin/rb_config.rbs +0 -10
  193. data/vendor/ruby-signature/stdlib/builtin/regexp.rbs +0 -131
  194. data/vendor/ruby-signature/stdlib/builtin/ruby_vm.rbs +0 -14
  195. data/vendor/ruby-signature/stdlib/builtin/signal.rbs +0 -55
  196. data/vendor/ruby-signature/stdlib/builtin/string.rbs +0 -770
  197. data/vendor/ruby-signature/stdlib/builtin/string_io.rbs +0 -13
  198. data/vendor/ruby-signature/stdlib/builtin/struct.rbs +0 -40
  199. data/vendor/ruby-signature/stdlib/builtin/symbol.rbs +0 -230
  200. data/vendor/ruby-signature/stdlib/builtin/thread.rbs +0 -1112
  201. data/vendor/ruby-signature/stdlib/builtin/thread_group.rbs +0 -23
  202. data/vendor/ruby-signature/stdlib/builtin/time.rbs +0 -739
  203. data/vendor/ruby-signature/stdlib/builtin/trace_point.rbs +0 -91
  204. data/vendor/ruby-signature/stdlib/builtin/true_class.rbs +0 -46
  205. data/vendor/ruby-signature/stdlib/builtin/unbound_method.rbs +0 -159
  206. data/vendor/ruby-signature/stdlib/builtin/warning.rbs +0 -17
  207. data/vendor/ruby-signature/stdlib/erb/erb.rbs +0 -18
  208. data/vendor/ruby-signature/stdlib/find/find.rbs +0 -44
  209. data/vendor/ruby-signature/stdlib/pathname/pathname.rbs +0 -21
  210. data/vendor/ruby-signature/stdlib/prime/integer-extension.rbs +0 -23
  211. data/vendor/ruby-signature/stdlib/prime/prime.rbs +0 -188
  212. data/vendor/ruby-signature/stdlib/securerandom/securerandom.rbs +0 -9
  213. data/vendor/ruby-signature/stdlib/set/set.rbs +0 -77
  214. data/vendor/ruby-signature/stdlib/tmpdir/tmpdir.rbs +0 -53
@@ -1,606 +0,0 @@
1
- class Encoding < Object
2
- # Returns the hash of available encoding alias and original encoding name.
3
- #
4
- # Encoding.aliases
5
- # #=> {"BINARY"=>"ASCII-8BIT", "ASCII"=>"US-ASCII", "ANSI_X3.4-1986"=>"US-ASCII",
6
- # "SJIS"=>"Shift_JIS", "eucJP"=>"EUC-JP", "CP932"=>"Windows-31J"}
7
- def self.aliases: () -> ::Hash[String, String]
8
-
9
- def self.compatible?: (untyped obj1, untyped obj2) -> Encoding?
10
-
11
- # Returns default external encoding.
12
- #
13
- # The default external encoding is used by default for strings created
14
- # from the following locations:
15
- #
16
- # - CSV
17
- #
18
- # - [File](https://ruby-doc.org/core-2.6.3/File.html) data read from
19
- # disk
20
- #
21
- # - SDBM
22
- #
23
- # - StringIO
24
- #
25
- # - Zlib::GzipReader
26
- #
27
- # - Zlib::GzipWriter
28
- #
29
- # - [String\#inspect](https://ruby-doc.org/core-2.6.3/String.html#method-i-inspect)
30
- #
31
- # - [Regexp\#inspect](https://ruby-doc.org/core-2.6.3/Regexp.html#method-i-inspect)
32
- #
33
- # While strings created from these locations will have this encoding, the
34
- # encoding may not be valid. Be sure to check
35
- # [String\#valid\_encoding?](https://ruby-doc.org/core-2.6.3/String.html#method-i-valid_encoding-3F)
36
- # .
37
- #
38
- # [File](https://ruby-doc.org/core-2.6.3/File.html) data written to disk
39
- # will be transcoded to the default external encoding when written.
40
- #
41
- # The default external encoding is initialized by the locale or -E option.
42
- def self.default_external: () -> Encoding
43
-
44
- def self.default_external=: (String arg0) -> String
45
- | (Encoding arg0) -> Encoding
46
-
47
- # Returns default internal encoding. Strings will be transcoded to the
48
- # default internal encoding in the following places if the default
49
- # internal encoding is not nil:
50
- #
51
- # - CSV
52
- #
53
- # - Etc.sysconfdir and Etc.systmpdir
54
- #
55
- # - [File](https://ruby-doc.org/core-2.6.3/File.html) data read from
56
- # disk
57
- #
58
- # - [File](https://ruby-doc.org/core-2.6.3/File.html) names from
59
- # [Dir](https://ruby-doc.org/core-2.6.3/Dir.html)
60
- #
61
- # - [Integer\#chr](https://ruby-doc.org/core-2.6.3/Integer.html#method-i-chr)
62
- #
63
- # - [String\#inspect](https://ruby-doc.org/core-2.6.3/String.html#method-i-inspect)
64
- # and
65
- # [Regexp\#inspect](https://ruby-doc.org/core-2.6.3/Regexp.html#method-i-inspect)
66
- #
67
- # - Strings returned from Readline
68
- #
69
- # - Strings returned from SDBM
70
- #
71
- # - [Time\#zone](https://ruby-doc.org/core-2.6.3/Time.html#method-i-zone)
72
- #
73
- # - Values from [ENV](https://ruby-doc.org/core-2.6.3/ENV.html)
74
- #
75
- # - Values in ARGV including $PROGRAM\_NAME
76
- #
77
- # Additionally
78
- # [String\#encode](https://ruby-doc.org/core-2.6.3/String.html#method-i-encode)
79
- # and
80
- # [String\#encode\!](https://ruby-doc.org/core-2.6.3/String.html#method-i-encode-21)
81
- # use the default internal encoding if no encoding is given.
82
- #
83
- # The locale encoding (\_\_ENCODING\_\_), not
84
- # [::default\_internal](Encoding.downloaded.ruby_doc#method-c-default_internal)
85
- # , is used as the encoding of created strings.
86
- #
87
- # [::default\_internal](Encoding.downloaded.ruby_doc#method-c-default_internal)
88
- # is initialized by the source file's internal\_encoding or -E option.
89
- def self.default_internal: () -> Encoding
90
-
91
- def self.default_internal=: (String arg0) -> String?
92
- | (Encoding arg0) -> Encoding?
93
-
94
- def self.find: (String | Encoding arg0) -> Encoding
95
-
96
- def self.list: () -> ::Array[Encoding]
97
-
98
- # Returns the list of available encoding names.
99
- #
100
- # Encoding.name_list
101
- # #=> ["US-ASCII", "ASCII-8BIT", "UTF-8",
102
- # "ISO-8859-1", "Shift_JIS", "EUC-JP",
103
- # "Windows-31J",
104
- # "BINARY", "CP932", "eucJP"]
105
- def self.name_list: () -> ::Array[String]
106
-
107
- # Returns whether ASCII-compatible or not.
108
- #
109
- # ```ruby
110
- # Encoding::UTF_8.ascii_compatible? #=> true
111
- # Encoding::UTF_16BE.ascii_compatible? #=> false
112
- # ```
113
- def ascii_compatible?: () -> bool
114
-
115
- # Returns true for dummy encodings. A dummy encoding is an encoding for
116
- # which character handling is not properly implemented. It is used for
117
- # stateful encodings.
118
- #
119
- # ```ruby
120
- # Encoding::ISO_2022_JP.dummy? #=> true
121
- # Encoding::UTF_8.dummy? #=> false
122
- # ```
123
- def dummy?: () -> bool
124
-
125
- def inspect: () -> String
126
-
127
- # Returns the name of the encoding.
128
- #
129
- # ```ruby
130
- # Encoding::UTF_8.name #=> "UTF-8"
131
- # ```
132
- def name: () -> String
133
-
134
- # Returns the list of name and aliases of the encoding.
135
- #
136
- # ```ruby
137
- # Encoding::WINDOWS_31J.names #=> ["Windows-31J", "CP932", "csWindows31J"]
138
- # ```
139
- def names: () -> ::Array[String]
140
-
141
- def replicate: (String name) -> Encoding
142
-
143
- # Returns the name of the encoding.
144
- #
145
- # ```ruby
146
- # Encoding::UTF_8.name #=> "UTF-8"
147
- # ```
148
- def to_s: () -> String
149
- end
150
-
151
- Encoding::ANSI_X3_4_1968: Encoding
152
-
153
- Encoding::ASCII: Encoding
154
-
155
- Encoding::ASCII_8BIT: Encoding
156
-
157
- Encoding::BIG5: Encoding
158
-
159
- Encoding::BIG5_HKSCS: Encoding
160
-
161
- Encoding::BIG5_HKSCS_2008: Encoding
162
-
163
- Encoding::BIG5_UAO: Encoding
164
-
165
- Encoding::BINARY: Encoding
166
-
167
- Encoding::Big5: Encoding
168
-
169
- Encoding::Big5_HKSCS: Encoding
170
-
171
- Encoding::Big5_HKSCS_2008: Encoding
172
-
173
- Encoding::Big5_UAO: Encoding
174
-
175
- Encoding::CP1250: Encoding
176
-
177
- Encoding::CP1251: Encoding
178
-
179
- Encoding::CP1252: Encoding
180
-
181
- Encoding::CP1253: Encoding
182
-
183
- Encoding::CP1254: Encoding
184
-
185
- Encoding::CP1255: Encoding
186
-
187
- Encoding::CP1256: Encoding
188
-
189
- Encoding::CP1257: Encoding
190
-
191
- Encoding::CP1258: Encoding
192
-
193
- Encoding::CP437: Encoding
194
-
195
- Encoding::CP50220: Encoding
196
-
197
- Encoding::CP50221: Encoding
198
-
199
- Encoding::CP51932: Encoding
200
-
201
- Encoding::CP65000: Encoding
202
-
203
- Encoding::CP65001: Encoding
204
-
205
- Encoding::CP737: Encoding
206
-
207
- Encoding::CP775: Encoding
208
-
209
- Encoding::CP850: Encoding
210
-
211
- Encoding::CP852: Encoding
212
-
213
- Encoding::CP855: Encoding
214
-
215
- Encoding::CP857: Encoding
216
-
217
- Encoding::CP860: Encoding
218
-
219
- Encoding::CP861: Encoding
220
-
221
- Encoding::CP862: Encoding
222
-
223
- Encoding::CP863: Encoding
224
-
225
- Encoding::CP864: Encoding
226
-
227
- Encoding::CP865: Encoding
228
-
229
- Encoding::CP866: Encoding
230
-
231
- Encoding::CP869: Encoding
232
-
233
- Encoding::CP874: Encoding
234
-
235
- Encoding::CP878: Encoding
236
-
237
- Encoding::CP932: Encoding
238
-
239
- Encoding::CP936: Encoding
240
-
241
- Encoding::CP949: Encoding
242
-
243
- Encoding::CP950: Encoding
244
-
245
- Encoding::CP951: Encoding
246
-
247
- Encoding::CSWINDOWS31J: Encoding
248
-
249
- Encoding::CsWindows31J: Encoding
250
-
251
- Encoding::EBCDIC_CP_US: Encoding
252
-
253
- Encoding::EMACS_MULE: Encoding
254
-
255
- Encoding::EUCCN: Encoding
256
-
257
- Encoding::EUCJP: Encoding
258
-
259
- Encoding::EUCJP_MS: Encoding
260
-
261
- Encoding::EUCKR: Encoding
262
-
263
- Encoding::EUCTW: Encoding
264
-
265
- Encoding::EUC_CN: Encoding
266
-
267
- Encoding::EUC_JISX0213: Encoding
268
-
269
- Encoding::EUC_JIS_2004: Encoding
270
-
271
- Encoding::EUC_JP: Encoding
272
-
273
- Encoding::EUC_JP_MS: Encoding
274
-
275
- Encoding::EUC_KR: Encoding
276
-
277
- Encoding::EUC_TW: Encoding
278
-
279
- Encoding::Emacs_Mule: Encoding
280
-
281
- Encoding::EucCN: Encoding
282
-
283
- Encoding::EucJP: Encoding
284
-
285
- Encoding::EucJP_ms: Encoding
286
-
287
- Encoding::EucKR: Encoding
288
-
289
- Encoding::EucTW: Encoding
290
-
291
- Encoding::GB12345: Encoding
292
-
293
- Encoding::GB18030: Encoding
294
-
295
- Encoding::GB1988: Encoding
296
-
297
- Encoding::GB2312: Encoding
298
-
299
- Encoding::GBK: Encoding
300
-
301
- Encoding::IBM037: Encoding
302
-
303
- Encoding::IBM437: Encoding
304
-
305
- Encoding::IBM737: Encoding
306
-
307
- Encoding::IBM775: Encoding
308
-
309
- Encoding::IBM850: Encoding
310
-
311
- Encoding::IBM852: Encoding
312
-
313
- Encoding::IBM855: Encoding
314
-
315
- Encoding::IBM857: Encoding
316
-
317
- Encoding::IBM860: Encoding
318
-
319
- Encoding::IBM861: Encoding
320
-
321
- Encoding::IBM862: Encoding
322
-
323
- Encoding::IBM863: Encoding
324
-
325
- Encoding::IBM864: Encoding
326
-
327
- Encoding::IBM865: Encoding
328
-
329
- Encoding::IBM866: Encoding
330
-
331
- Encoding::IBM869: Encoding
332
-
333
- Encoding::ISO2022_JP: Encoding
334
-
335
- Encoding::ISO2022_JP2: Encoding
336
-
337
- Encoding::ISO8859_1: Encoding
338
-
339
- Encoding::ISO8859_10: Encoding
340
-
341
- Encoding::ISO8859_11: Encoding
342
-
343
- Encoding::ISO8859_13: Encoding
344
-
345
- Encoding::ISO8859_14: Encoding
346
-
347
- Encoding::ISO8859_15: Encoding
348
-
349
- Encoding::ISO8859_16: Encoding
350
-
351
- Encoding::ISO8859_2: Encoding
352
-
353
- Encoding::ISO8859_3: Encoding
354
-
355
- Encoding::ISO8859_4: Encoding
356
-
357
- Encoding::ISO8859_5: Encoding
358
-
359
- Encoding::ISO8859_6: Encoding
360
-
361
- Encoding::ISO8859_7: Encoding
362
-
363
- Encoding::ISO8859_8: Encoding
364
-
365
- Encoding::ISO8859_9: Encoding
366
-
367
- Encoding::ISO_2022_JP: Encoding
368
-
369
- Encoding::ISO_2022_JP_2: Encoding
370
-
371
- Encoding::ISO_2022_JP_KDDI: Encoding
372
-
373
- Encoding::ISO_8859_1: Encoding
374
-
375
- Encoding::ISO_8859_10: Encoding
376
-
377
- Encoding::ISO_8859_11: Encoding
378
-
379
- Encoding::ISO_8859_13: Encoding
380
-
381
- Encoding::ISO_8859_14: Encoding
382
-
383
- Encoding::ISO_8859_15: Encoding
384
-
385
- Encoding::ISO_8859_16: Encoding
386
-
387
- Encoding::ISO_8859_2: Encoding
388
-
389
- Encoding::ISO_8859_3: Encoding
390
-
391
- Encoding::ISO_8859_4: Encoding
392
-
393
- Encoding::ISO_8859_5: Encoding
394
-
395
- Encoding::ISO_8859_6: Encoding
396
-
397
- Encoding::ISO_8859_7: Encoding
398
-
399
- Encoding::ISO_8859_8: Encoding
400
-
401
- Encoding::ISO_8859_9: Encoding
402
-
403
- Encoding::KOI8_R: Encoding
404
-
405
- Encoding::KOI8_U: Encoding
406
-
407
- Encoding::MACCENTEURO: Encoding
408
-
409
- Encoding::MACCROATIAN: Encoding
410
-
411
- Encoding::MACCYRILLIC: Encoding
412
-
413
- Encoding::MACGREEK: Encoding
414
-
415
- Encoding::MACICELAND: Encoding
416
-
417
- Encoding::MACJAPAN: Encoding
418
-
419
- Encoding::MACJAPANESE: Encoding
420
-
421
- Encoding::MACROMAN: Encoding
422
-
423
- Encoding::MACROMANIA: Encoding
424
-
425
- Encoding::MACTHAI: Encoding
426
-
427
- Encoding::MACTURKISH: Encoding
428
-
429
- Encoding::MACUKRAINE: Encoding
430
-
431
- Encoding::MacCentEuro: Encoding
432
-
433
- Encoding::MacCroatian: Encoding
434
-
435
- Encoding::MacCyrillic: Encoding
436
-
437
- Encoding::MacGreek: Encoding
438
-
439
- Encoding::MacIceland: Encoding
440
-
441
- Encoding::MacJapan: Encoding
442
-
443
- Encoding::MacJapanese: Encoding
444
-
445
- Encoding::MacRoman: Encoding
446
-
447
- Encoding::MacRomania: Encoding
448
-
449
- Encoding::MacThai: Encoding
450
-
451
- Encoding::MacTurkish: Encoding
452
-
453
- Encoding::MacUkraine: Encoding
454
-
455
- Encoding::PCK: Encoding
456
-
457
- Encoding::SHIFT_JIS: Encoding
458
-
459
- Encoding::SJIS: Encoding
460
-
461
- Encoding::SJIS_DOCOMO: Encoding
462
-
463
- Encoding::SJIS_DoCoMo: Encoding
464
-
465
- Encoding::SJIS_KDDI: Encoding
466
-
467
- Encoding::SJIS_SOFTBANK: Encoding
468
-
469
- Encoding::SJIS_SoftBank: Encoding
470
-
471
- Encoding::STATELESS_ISO_2022_JP: Encoding
472
-
473
- Encoding::STATELESS_ISO_2022_JP_KDDI: Encoding
474
-
475
- Encoding::Shift_JIS: Encoding
476
-
477
- Encoding::Stateless_ISO_2022_JP: Encoding
478
-
479
- Encoding::Stateless_ISO_2022_JP_KDDI: Encoding
480
-
481
- Encoding::TIS_620: Encoding
482
-
483
- Encoding::UCS_2BE: Encoding
484
-
485
- Encoding::UCS_4BE: Encoding
486
-
487
- Encoding::UCS_4LE: Encoding
488
-
489
- Encoding::US_ASCII: Encoding
490
-
491
- Encoding::UTF8_DOCOMO: Encoding
492
-
493
- Encoding::UTF8_DoCoMo: Encoding
494
-
495
- Encoding::UTF8_KDDI: Encoding
496
-
497
- Encoding::UTF8_MAC: Encoding
498
-
499
- Encoding::UTF8_SOFTBANK: Encoding
500
-
501
- Encoding::UTF8_SoftBank: Encoding
502
-
503
- Encoding::UTF_16: Encoding
504
-
505
- Encoding::UTF_16BE: Encoding
506
-
507
- Encoding::UTF_16LE: Encoding
508
-
509
- Encoding::UTF_32: Encoding
510
-
511
- Encoding::UTF_32BE: Encoding
512
-
513
- Encoding::UTF_32LE: Encoding
514
-
515
- Encoding::UTF_7: Encoding
516
-
517
- Encoding::UTF_8: Encoding
518
-
519
- Encoding::UTF_8_HFS: Encoding
520
-
521
- Encoding::UTF_8_MAC: Encoding
522
-
523
- Encoding::WINDOWS_1250: Encoding
524
-
525
- Encoding::WINDOWS_1251: Encoding
526
-
527
- Encoding::WINDOWS_1252: Encoding
528
-
529
- Encoding::WINDOWS_1253: Encoding
530
-
531
- Encoding::WINDOWS_1254: Encoding
532
-
533
- Encoding::WINDOWS_1255: Encoding
534
-
535
- Encoding::WINDOWS_1256: Encoding
536
-
537
- Encoding::WINDOWS_1257: Encoding
538
-
539
- Encoding::WINDOWS_1258: Encoding
540
-
541
- Encoding::WINDOWS_31J: Encoding
542
-
543
- Encoding::WINDOWS_874: Encoding
544
-
545
- Encoding::Windows_1250: Encoding
546
-
547
- Encoding::Windows_1251: Encoding
548
-
549
- Encoding::Windows_1252: Encoding
550
-
551
- Encoding::Windows_1253: Encoding
552
-
553
- Encoding::Windows_1254: Encoding
554
-
555
- Encoding::Windows_1255: Encoding
556
-
557
- Encoding::Windows_1256: Encoding
558
-
559
- Encoding::Windows_1257: Encoding
560
-
561
- Encoding::Windows_1258: Encoding
562
-
563
- Encoding::Windows_31J: Encoding
564
-
565
- Encoding::Windows_874: Encoding
566
-
567
- class Encoding::Converter < Data
568
- end
569
-
570
- Encoding::Converter::AFTER_OUTPUT: Integer
571
-
572
- Encoding::Converter::CRLF_NEWLINE_DECORATOR: Integer
573
-
574
- Encoding::Converter::CR_NEWLINE_DECORATOR: Integer
575
-
576
- Encoding::Converter::INVALID_MASK: Integer
577
-
578
- Encoding::Converter::INVALID_REPLACE: Integer
579
-
580
- Encoding::Converter::PARTIAL_INPUT: Integer
581
-
582
- Encoding::Converter::UNDEF_HEX_CHARREF: Integer
583
-
584
- Encoding::Converter::UNDEF_MASK: Integer
585
-
586
- Encoding::Converter::UNDEF_REPLACE: Integer
587
-
588
- Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR: Integer
589
-
590
- Encoding::Converter::XML_ATTR_CONTENT_DECORATOR: Integer
591
-
592
- Encoding::Converter::XML_ATTR_QUOTE_DECORATOR: Integer
593
-
594
- Encoding::Converter::XML_TEXT_DECORATOR: Integer
595
-
596
- class Encoding::CompatibilityError < EncodingError
597
- end
598
-
599
- class Encoding::ConverterNotFoundError < EncodingError
600
- end
601
-
602
- class Encoding::InvalidByteSequenceError < EncodingError
603
- end
604
-
605
- class Encoding::UndefinedConversionError < EncodingError
606
- end