ruby-lint 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +2 -5
  4. data/Gemfile +9 -4
  5. data/MANIFEST +32 -28
  6. data/README.md +18 -5
  7. data/Rakefile +7 -3
  8. data/checksum/ruby-lint-1.0.2.gem.sha512 +1 -0
  9. data/checksum/ruby-lint-1.0.3.gem.sha512 +1 -0
  10. data/doc/changelog.md +40 -0
  11. data/doc/definitions.md +182 -0
  12. data/gen/rails/constants.txt +12 -0
  13. data/gen/rails/requires.rb +2 -0
  14. data/gen/stdlib/constants.rb +30 -0
  15. data/gen/stdlib/constants.txt +214 -0
  16. data/gen/stdlib/requires.rb +64 -0
  17. data/lib/ruby-lint.rb +7 -14
  18. data/lib/ruby-lint/analysis/undefined_methods.rb +8 -1
  19. data/lib/ruby-lint/analysis/useless_equality_checks.rb +92 -0
  20. data/lib/ruby-lint/cli.rb +1 -2
  21. data/lib/ruby-lint/cli/analyze.rb +55 -26
  22. data/lib/ruby-lint/cli/cache.rb +60 -0
  23. data/lib/ruby-lint/configuration.rb +10 -4
  24. data/lib/ruby-lint/constant_loader.rb +75 -22
  25. data/lib/ruby-lint/definition/constant_proxy.rb +51 -3
  26. data/lib/ruby-lint/definition/registry.rb +126 -0
  27. data/lib/ruby-lint/definition/ruby_method.rb +0 -11
  28. data/lib/ruby-lint/definition/ruby_object.rb +32 -24
  29. data/lib/ruby-lint/definition_builder/base.rb +9 -12
  30. data/lib/ruby-lint/definition_builder/primitive.rb +1 -1
  31. data/lib/ruby-lint/definition_builder/ruby_array.rb +1 -1
  32. data/lib/ruby-lint/definition_builder/ruby_block.rb +3 -3
  33. data/lib/ruby-lint/definition_builder/ruby_class.rb +2 -2
  34. data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
  35. data/lib/ruby-lint/definition_builder/ruby_method.rb +1 -1
  36. data/lib/ruby-lint/definition_builder/ruby_module.rb +4 -4
  37. data/lib/ruby-lint/definition_generator.rb +12 -2
  38. data/lib/ruby-lint/definitions/core/abbrev.rb +8 -11
  39. data/lib/ruby-lint/definitions/core/argf.rb +9 -7
  40. data/lib/ruby-lint/definitions/core/argument_error.rb +8 -10
  41. data/lib/ruby-lint/definitions/core/argv.rb +9 -9
  42. data/lib/ruby-lint/definitions/core/array.rb +296 -534
  43. data/lib/ruby-lint/definitions/core/base64.rb +22 -25
  44. data/lib/ruby-lint/definitions/core/basic_object.rb +30 -30
  45. data/lib/ruby-lint/definitions/core/basic_socket.rb +341 -455
  46. data/lib/ruby-lint/definitions/core/benchmark.rb +157 -24
  47. data/lib/ruby-lint/definitions/core/bignum.rb +110 -95
  48. data/lib/ruby-lint/definitions/core/binding.rb +38 -35
  49. data/lib/ruby-lint/definitions/core/cgi.rb +333 -49
  50. data/lib/ruby-lint/definitions/core/class.rb +16 -16
  51. data/lib/ruby-lint/definitions/core/common_headers.rb +4 -548
  52. data/lib/ruby-lint/definitions/core/common_libs.rb +4 -421
  53. data/lib/ruby-lint/definitions/core/comparable.rb +28 -29
  54. data/lib/ruby-lint/definitions/core/complex.rb +103 -141
  55. data/lib/ruby-lint/definitions/core/condition_variable.rb +14 -14
  56. data/lib/ruby-lint/definitions/core/config.rb +4 -318
  57. data/lib/ruby-lint/definitions/core/conftest_c.rb +4 -548
  58. data/lib/ruby-lint/definitions/core/coutflag.rb +4 -548
  59. data/lib/ruby-lint/definitions/core/csv.rb +729 -329
  60. data/lib/ruby-lint/definitions/core/data.rb +9 -8
  61. data/lib/ruby-lint/definitions/core/date.rb +452 -526
  62. data/lib/ruby-lint/definitions/core/date_time.rb +234 -303
  63. data/lib/ruby-lint/definitions/core/delegator.rb +57 -48
  64. data/lib/ruby-lint/definitions/core/digest.rb +94 -115
  65. data/lib/ruby-lint/definitions/core/dir.rb +89 -459
  66. data/lib/ruby-lint/definitions/core/drb.rb +531 -36
  67. data/lib/ruby-lint/definitions/core/drb_id_conv.rb +10 -19
  68. data/lib/ruby-lint/definitions/core/drb_object.rb +53 -58
  69. data/lib/ruby-lint/definitions/core/drb_undumped.rb +7 -10
  70. data/lib/ruby-lint/definitions/core/encoding.rb +1026 -1718
  71. data/lib/ruby-lint/definitions/core/encoding_error.rb +9 -8
  72. data/lib/ruby-lint/definitions/core/enumerable.rb +123 -292
  73. data/lib/ruby-lint/definitions/core/enumerator.rb +28 -26
  74. data/lib/ruby-lint/definitions/core/env.rb +8 -9
  75. data/lib/ruby-lint/definitions/core/eoferror.rb +9 -8
  76. data/lib/ruby-lint/definitions/core/erb.rb +201 -226
  77. data/lib/ruby-lint/definitions/core/errno.rb +1593 -2917
  78. data/lib/ruby-lint/definitions/core/etc.rb +86 -107
  79. data/lib/ruby-lint/definitions/core/exception.rb +70 -50
  80. data/lib/ruby-lint/definitions/core/exception_for_matrix.rb +24 -37
  81. data/lib/ruby-lint/definitions/core/export_prefix.rb +4 -16
  82. data/lib/ruby-lint/definitions/core/failed_message.rb +4 -548
  83. data/lib/ruby-lint/definitions/core/false.rb +9 -7
  84. data/lib/ruby-lint/definitions/core/false_class.rb +40 -22
  85. data/lib/ruby-lint/definitions/core/fcntl.rb +120 -7
  86. data/lib/ruby-lint/definitions/core/fiber.rb +25 -26
  87. data/lib/ruby-lint/definitions/core/fiber_error.rb +9 -8
  88. data/lib/ruby-lint/definitions/core/file.rb +1119 -860
  89. data/lib/ruby-lint/definitions/core/file_test.rb +79 -80
  90. data/lib/ruby-lint/definitions/core/file_utils.rb +1203 -765
  91. data/lib/ruby-lint/definitions/core/find.rb +9 -12
  92. data/lib/ruby-lint/definitions/core/fixnum.rb +113 -663
  93. data/lib/ruby-lint/definitions/core/float.rb +171 -2755
  94. data/lib/ruby-lint/definitions/core/float_domain_error.rb +9 -8
  95. data/lib/ruby-lint/definitions/core/forwardable.rb +37 -30
  96. data/lib/ruby-lint/definitions/core/gc.rb +31 -38
  97. data/lib/ruby-lint/definitions/core/gem.rb +2324 -2183
  98. data/lib/ruby-lint/definitions/core/getopt_long.rb +107 -32
  99. data/lib/ruby-lint/definitions/core/gserver.rb +61 -61
  100. data/lib/ruby-lint/definitions/core/hash.rb +354 -1172
  101. data/lib/ruby-lint/definitions/core/hdr_ext.rb +4 -421
  102. data/lib/ruby-lint/definitions/core/index_error.rb +9 -8
  103. data/lib/ruby-lint/definitions/core/install_dirs.rb +4 -421
  104. data/lib/ruby-lint/definitions/core/integer.rb +93 -67
  105. data/lib/ruby-lint/definitions/core/interrupt.rb +11 -11
  106. data/lib/ruby-lint/definitions/core/io.rb +574 -673
  107. data/lib/ruby-lint/definitions/core/ioerror.rb +9 -8
  108. data/lib/ruby-lint/definitions/core/ipaddr.rb +115 -90
  109. data/lib/ruby-lint/definitions/core/ipsocket.rb +301 -472
  110. data/lib/ruby-lint/definitions/core/irb.rb +1206 -34
  111. data/lib/ruby-lint/definitions/core/json.rb +483 -74
  112. data/lib/ruby-lint/definitions/core/kconv.rb +88 -36
  113. data/lib/ruby-lint/definitions/core/kernel.rb +408 -412
  114. data/lib/ruby-lint/definitions/core/key_error.rb +9 -8
  115. data/lib/ruby-lint/definitions/core/libarg.rb +4 -548
  116. data/lib/ruby-lint/definitions/core/libpathflag.rb +4 -548
  117. data/lib/ruby-lint/definitions/core/link_so.rb +4 -548
  118. data/lib/ruby-lint/definitions/core/load_error.rb +24 -25
  119. data/lib/ruby-lint/definitions/core/local_jump_error.rb +9 -8
  120. data/lib/ruby-lint/definitions/core/logger.rb +294 -61
  121. data/lib/ruby-lint/definitions/core/logging.rb +17 -20
  122. data/lib/ruby-lint/definitions/core/make_makefile.rb +548 -384
  123. data/lib/ruby-lint/definitions/core/marshal.rb +260 -358
  124. data/lib/ruby-lint/definitions/core/match_data.rb +51 -48
  125. data/lib/ruby-lint/definitions/core/math.rb +170 -178
  126. data/lib/ruby-lint/definitions/core/matrix.rb +354 -297
  127. data/lib/ruby-lint/definitions/core/method.rb +41 -42
  128. data/lib/ruby-lint/definitions/core/module.rb +219 -223
  129. data/lib/ruby-lint/definitions/core/monitor.rb +26 -28
  130. data/lib/ruby-lint/definitions/core/monitor_mixin.rb +36 -42
  131. data/lib/ruby-lint/definitions/core/mutex.rb +20 -22
  132. data/lib/ruby-lint/definitions/core/mutex_m.rb +24 -27
  133. data/lib/ruby-lint/definitions/core/name_error.rb +13 -13
  134. data/lib/ruby-lint/definitions/core/nil.rb +9 -7
  135. data/lib/ruby-lint/definitions/core/nil_class.rb +47 -31
  136. data/lib/ruby-lint/definitions/core/nkf.rb +76 -9
  137. data/lib/ruby-lint/definitions/core/no_memory_error.rb +9 -8
  138. data/lib/ruby-lint/definitions/core/no_method_error.rb +14 -14
  139. data/lib/ruby-lint/definitions/core/not_implemented_error.rb +9 -8
  140. data/lib/ruby-lint/definitions/core/numeric.rb +88 -80
  141. data/lib/ruby-lint/definitions/core/object.rb +20 -20
  142. data/lib/ruby-lint/definitions/core/object_space.rb +28 -31
  143. data/lib/ruby-lint/definitions/core/observable.rb +20 -23
  144. data/lib/ruby-lint/definitions/core/open3.rb +47 -50
  145. data/lib/ruby-lint/definitions/core/open_ssl.rb +4158 -13
  146. data/lib/ruby-lint/definitions/core/open_struct.rb +40 -37
  147. data/lib/ruby-lint/definitions/core/open_uri.rb +142 -25
  148. data/lib/ruby-lint/definitions/core/option_parser.rb +919 -981
  149. data/lib/ruby-lint/definitions/core/orig_libpath.rb +4 -32
  150. data/lib/ruby-lint/definitions/core/outflag.rb +4 -548
  151. data/lib/ruby-lint/definitions/core/pathname.rb +211 -186
  152. data/lib/ruby-lint/definitions/core/pp.rb +160 -99
  153. data/lib/ruby-lint/definitions/core/pretty_print.rb +170 -56
  154. data/lib/ruby-lint/definitions/core/prime.rb +329 -234
  155. data/lib/ruby-lint/definitions/core/proc.rb +63 -75
  156. data/lib/ruby-lint/definitions/core/process.rb +504 -412
  157. data/lib/ruby-lint/definitions/core/profiler__.rb +13 -16
  158. data/lib/ruby-lint/definitions/core/pstore.rb +66 -36
  159. data/lib/ruby-lint/definitions/core/queue.rb +32 -32
  160. data/lib/ruby-lint/definitions/core/random.rb +29 -29
  161. data/lib/ruby-lint/definitions/core/range.rb +123 -77
  162. data/lib/ruby-lint/definitions/core/range_error.rb +9 -8
  163. data/lib/ruby-lint/definitions/core/rational.rb +84 -67
  164. data/lib/ruby-lint/definitions/core/rb_config.rb +18 -29
  165. data/lib/ruby-lint/definitions/core/readline.rb +85 -41
  166. data/lib/ruby-lint/definitions/core/regexp.rb +239 -293
  167. data/lib/ruby-lint/definitions/core/regexp_error.rb +9 -8
  168. data/lib/ruby-lint/definitions/core/resolv.rb +1365 -38
  169. data/lib/ruby-lint/definitions/core/rpathflag.rb +4 -548
  170. data/lib/ruby-lint/definitions/core/ruby_copyright.rb +9 -9
  171. data/lib/ruby-lint/definitions/core/ruby_description.rb +9 -9
  172. data/lib/ruby-lint/definitions/core/ruby_engine.rb +9 -9
  173. data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +9 -9
  174. data/lib/ruby-lint/definitions/core/ruby_platform.rb +9 -9
  175. data/lib/ruby-lint/definitions/core/ruby_release_date.rb +9 -9
  176. data/lib/ruby-lint/definitions/core/ruby_revision.rb +4 -246
  177. data/lib/ruby-lint/definitions/core/ruby_version.rb +9 -9
  178. data/lib/ruby-lint/definitions/core/runtime_error.rb +9 -8
  179. data/lib/ruby-lint/definitions/core/scan_error.rb +9 -8
  180. data/lib/ruby-lint/definitions/core/scanf.rb +83 -7
  181. data/lib/ruby-lint/definitions/core/script_error.rb +9 -8
  182. data/lib/ruby-lint/definitions/core/secure_random.rb +22 -25
  183. data/lib/ruby-lint/definitions/core/security_error.rb +9 -8
  184. data/lib/ruby-lint/definitions/core/set.rb +154 -504
  185. data/lib/ruby-lint/definitions/core/shellwords.rb +27 -28
  186. data/lib/ruby-lint/definitions/core/signal.rb +21 -29
  187. data/lib/ruby-lint/definitions/core/signal_exception.rb +15 -15
  188. data/lib/ruby-lint/definitions/core/simple_delegator.rb +10 -26
  189. data/lib/ruby-lint/definitions/core/single_forwardable.rb +35 -38
  190. data/lib/ruby-lint/definitions/core/singleton.rb +21 -28
  191. data/lib/ruby-lint/definitions/core/sized_queue.rb +35 -31
  192. data/lib/ruby-lint/definitions/core/socket.rb +2942 -438
  193. data/lib/ruby-lint/definitions/core/socket_error.rb +4 -54
  194. data/lib/ruby-lint/definitions/core/sorted_set.rb +49 -263
  195. data/lib/ruby-lint/definitions/core/src_ext.rb +4 -421
  196. data/lib/ruby-lint/definitions/core/standard_error.rb +9 -8
  197. data/lib/ruby-lint/definitions/core/stderr.rb +9 -9
  198. data/lib/ruby-lint/definitions/core/stdin.rb +9 -9
  199. data/lib/ruby-lint/definitions/core/stdout.rb +9 -9
  200. data/lib/ruby-lint/definitions/core/stop_iteration.rb +10 -8
  201. data/lib/ruby-lint/definitions/core/string.rb +451 -1222
  202. data/lib/ruby-lint/definitions/core/string_io.rb +226 -518
  203. data/lib/ruby-lint/definitions/core/string_scanner.rb +107 -108
  204. data/lib/ruby-lint/definitions/core/struct.rb +113 -761
  205. data/lib/ruby-lint/definitions/core/syck.rb +1292 -25
  206. data/lib/ruby-lint/definitions/core/symbol.rb +78 -59
  207. data/lib/ruby-lint/definitions/core/syntax_error.rb +23 -33
  208. data/lib/ruby-lint/definitions/core/system_call_error.rb +26 -24
  209. data/lib/ruby-lint/definitions/core/system_exit.rb +15 -15
  210. data/lib/ruby-lint/definitions/core/system_stack_error.rb +9 -8
  211. data/lib/ruby-lint/definitions/core/tcpserver.rb +291 -486
  212. data/lib/ruby-lint/definitions/core/tcpsocket.rb +302 -483
  213. data/lib/ruby-lint/definitions/core/tempfile.rb +39 -832
  214. data/lib/ruby-lint/definitions/core/th_wait.rb +35 -70
  215. data/lib/ruby-lint/definitions/core/thread.rb +131 -144
  216. data/lib/ruby-lint/definitions/core/thread_error.rb +9 -8
  217. data/lib/ruby-lint/definitions/core/thread_group.rb +23 -16
  218. data/lib/ruby-lint/definitions/core/threads_wait.rb +43 -63
  219. data/lib/ruby-lint/definitions/core/time.rb +236 -159
  220. data/lib/ruby-lint/definitions/core/timeout.rb +40 -14
  221. data/lib/ruby-lint/definitions/core/timeout_error.rb +4 -54
  222. data/lib/ruby-lint/definitions/core/toplevel_binding.rb +9 -7
  223. data/lib/ruby-lint/definitions/core/true.rb +9 -7
  224. data/lib/ruby-lint/definitions/core/true_class.rb +40 -22
  225. data/lib/ruby-lint/definitions/core/try_link.rb +4 -548
  226. data/lib/ruby-lint/definitions/core/tsort.rb +21 -19
  227. data/lib/ruby-lint/definitions/core/type_error.rb +9 -8
  228. data/lib/ruby-lint/definitions/core/udpsocket.rb +302 -487
  229. data/lib/ruby-lint/definitions/core/unbound_method.rb +35 -36
  230. data/lib/ruby-lint/definitions/core/universal_ints.rb +4 -421
  231. data/lib/ruby-lint/definitions/core/unixserver.rb +291 -490
  232. data/lib/ruby-lint/definitions/core/unixsocket.rb +314 -476
  233. data/lib/ruby-lint/definitions/core/uri.rb +1309 -38
  234. data/lib/ruby-lint/definitions/core/vector.rb +143 -242
  235. data/lib/ruby-lint/definitions/core/weak_ref.rb +29 -32
  236. data/lib/ruby-lint/definitions/core/webrick.rb +2430 -7
  237. data/lib/ruby-lint/definitions/core/xmlrpc.rb +5 -7
  238. data/lib/ruby-lint/definitions/core/yaml.rb +109 -2325
  239. data/lib/ruby-lint/definitions/core/zero_division_error.rb +9 -8
  240. data/lib/ruby-lint/definitions/core/zlib.rb +272 -8526
  241. data/lib/ruby-lint/definitions/gems/.gitkeep +0 -0
  242. data/lib/ruby-lint/definitions/gems/devise.rb +2271 -0
  243. data/lib/ruby-lint/definitions/gems/nokogiri.rb +7668 -0
  244. data/lib/ruby-lint/definitions/rails/abstract_controller.rb +508 -322
  245. data/lib/ruby-lint/definitions/rails/action_controller.rb +2252 -4462
  246. data/lib/ruby-lint/definitions/rails/action_dispatch.rb +3448 -1846
  247. data/lib/ruby-lint/definitions/rails/action_mailer.rb +750 -1349
  248. data/lib/ruby-lint/definitions/rails/action_pack.rb +31 -14
  249. data/lib/ruby-lint/definitions/rails/action_view.rb +5788 -5748
  250. data/lib/ruby-lint/definitions/rails/active_model.rb +1015 -1065
  251. data/lib/ruby-lint/definitions/rails/active_record.rb +8080 -8075
  252. data/lib/ruby-lint/definitions/rails/active_support.rb +3844 -4153
  253. data/lib/ruby-lint/definitions/rails/arel.rb +6752 -2301
  254. data/lib/ruby-lint/definitions/rails/rails.rb +1553 -2383
  255. data/lib/ruby-lint/definitions/rails/sprockets.rb +1131 -3140
  256. data/lib/ruby-lint/file_list.rb +43 -0
  257. data/lib/ruby-lint/file_scanner.rb +3 -3
  258. data/lib/ruby-lint/generated_constant.rb +5 -1
  259. data/lib/ruby-lint/inspector.rb +108 -46
  260. data/lib/ruby-lint/method_call/attribute.rb +3 -1
  261. data/lib/ruby-lint/rake_task.rb +98 -0
  262. data/lib/ruby-lint/ruby_lint.rb +11 -0
  263. data/lib/ruby-lint/runner.rb +0 -11
  264. data/lib/ruby-lint/template/definition.erb +26 -19
  265. data/lib/ruby-lint/template/scope.rb +12 -0
  266. data/lib/ruby-lint/variable_predicates.rb +14 -0
  267. data/lib/ruby-lint/version.rb +1 -1
  268. data/lib/ruby-lint/virtual_machine.rb +82 -46
  269. data/ruby-lint.gemspec +3 -14
  270. data/spec/ruby-lint/analysis/undefined_methods_spec.rb +20 -3
  271. data/spec/ruby-lint/analysis/useless_equality_checks_spec.rb +107 -0
  272. data/spec/ruby-lint/configuration_spec.rb +20 -0
  273. data/spec/ruby-lint/constant_loader_spec.rb +79 -0
  274. data/spec/ruby-lint/definition/constant_proxy_spec.rb +65 -34
  275. data/spec/ruby-lint/definition/registry_spec.rb +106 -0
  276. data/spec/ruby-lint/definition/ruby_object_spec.rb +25 -25
  277. data/spec/ruby-lint/definition_builder/primitive_spec.rb +10 -10
  278. data/spec/ruby-lint/definition_builder/ruby_class_spec.rb +18 -19
  279. data/spec/ruby-lint/definition_builder/ruby_method_spec.rb +12 -12
  280. data/spec/ruby-lint/definition_builder/ruby_module_spec.rb +14 -14
  281. data/spec/ruby-lint/definitions/argv_spec.rb +3 -2
  282. data/spec/ruby-lint/definitions/env_spec.rb +5 -3
  283. data/spec/ruby-lint/definitions/file_spec.rb +17 -0
  284. data/spec/ruby-lint/definitions/fixnum_spec.rb +18 -0
  285. data/spec/ruby-lint/definitions/io_spec.rb +5 -3
  286. data/spec/ruby-lint/definitions/kernel_spec.rb +18 -0
  287. data/spec/ruby-lint/definitions/range_spec.rb +21 -0
  288. data/spec/ruby-lint/definitions/string_spec.rb +20 -0
  289. data/spec/ruby-lint/file_list_spec.rb +25 -0
  290. data/spec/ruby-lint/file_scanner_spec.rb +12 -0
  291. data/spec/ruby-lint/inspector_spec.rb +203 -23
  292. data/spec/ruby-lint/method_call/.gitkeep +0 -0
  293. data/spec/ruby-lint/variable_predicates_spec.rb +30 -0
  294. data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +6 -4
  295. data/spec/ruby-lint/virtual_machine/autoloading_spec.rb +3 -16
  296. data/spec/ruby-lint/virtual_machine/classes/redefining_spec.rb +28 -1
  297. data/spec/ruby-lint/virtual_machine/complex/rails_spec.rb +12 -9
  298. data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +8 -5
  299. data/spec/ruby-lint/virtual_machine/method_call_tracking_spec.rb +0 -7
  300. data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +66 -0
  301. data/spec/ruby-lint/virtual_machine/methods/calls_spec.rb +25 -0
  302. data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +1 -1
  303. data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +20 -9
  304. data/spec/ruby-lint/virtual_machine/methods/kernel_spec.rb +25 -0
  305. data/spec/ruby-lint/virtual_machine/methods/patching_spec.rb +0 -6
  306. data/spec/ruby-lint/virtual_machine/methods/square_bracket_spec.rb +32 -0
  307. data/spec/ruby-lint/virtual_machine/self_spec.rb +37 -0
  308. data/spec/spec_helper.rb +0 -1
  309. data/spec/support/building.rb +0 -4
  310. data/spec/support/definitions.rb +16 -0
  311. data/task/generate.rake +35 -33
  312. data/task/todo.rake +1 -1
  313. metadata +73 -100
  314. data/lib/ruby-lint/cli/ast.rb +0 -50
  315. data/lib/ruby-lint/cli/plot.rb +0 -94
  316. data/lib/ruby-lint/definitions/core/arg0.rb +0 -9
  317. data/lib/ruby-lint/definitions/core/autoload.rb +0 -41
  318. data/lib/ruby-lint/definitions/core/continuation.rb +0 -10
  319. data/lib/ruby-lint/definitions/core/default_record_separator.rb +0 -9
  320. data/lib/ruby-lint/definitions/core/fatal_error.rb +0 -10
  321. data/lib/ruby-lint/definitions/core/file_list.rb +0 -729
  322. data/lib/ruby-lint/definitions/core/immediate_value.rb +0 -21
  323. data/lib/ruby-lint/definitions/core/md5.rb +0 -80
  324. data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +0 -10
  325. data/lib/ruby-lint/definitions/core/precision.rb +0 -23
  326. data/lib/ruby-lint/definitions/core/primitive_failure.rb +0 -10
  327. data/lib/ruby-lint/definitions/core/psych.rb +0 -139
  328. data/lib/ruby-lint/definitions/core/rake.rb +0 -4786
  329. data/lib/ruby-lint/definitions/core/rake_file_utils.rb +0 -205
  330. data/lib/ruby-lint/definitions/core/rakeversion.rb +0 -9
  331. data/lib/ruby-lint/definitions/core/rdoc.rb +0 -15
  332. data/lib/ruby-lint/definitions/core/rexml.rb +0 -13
  333. data/lib/ruby-lint/definitions/core/rss.rb +0 -13
  334. data/lib/ruby-lint/definitions/core/sha1.rb +0 -80
  335. data/lib/ruby-lint/definitions/core/unmarshalable.rb +0 -15
  336. data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +0 -10
  337. data/lib/ruby-lint/definitions/global_variables.rb +0 -9
  338. data/lib/ruby-lint/definitions/rails.rb +0 -12
  339. data/lib/ruby-lint/global_scope.rb +0 -56
  340. data/spec/ruby-lint/cli/ast_spec.rb +0 -23
  341. data/spec/ruby-lint/method_call/assign_member_spec.rb +0 -25
@@ -1,27 +1,18 @@
1
1
  # This file was automatically generated, any manual changes will be lost the
2
2
  # next time this file is generated.
3
3
  #
4
- # Created: 2013-11-11 21:14:28 +0100
5
- # Platform: rbx 2.1.1
4
+ # Platform: rbx 2.2.3.n364
6
5
 
7
- RubyLint::GlobalScope.definitions.define_constant('DRbIdConv') do |klass|
8
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
6
+ RubyLint.registry.register('DRbIdConv') do |defs|
7
+ defs.define_constant('DRbIdConv') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
9
 
10
- klass.define_method('initialize') do |method|
11
- method.define_optional_argument('sclass')
12
- method.define_optional_argument('name')
13
- method.define_optional_argument('under')
14
- end
15
-
16
- klass.define_instance_method('initialize')
10
+ klass.define_instance_method('to_id') do |method|
11
+ method.define_argument('obj')
12
+ end
17
13
 
18
- klass.define_instance_method('to_id') do |method|
19
- method.define_argument('obj')
20
- end
21
-
22
- klass.define_instance_method('to_obj') do |method|
23
- method.define_argument('ref')
14
+ klass.define_instance_method('to_obj') do |method|
15
+ method.define_argument('ref')
16
+ end
24
17
  end
25
18
  end
26
-
27
- RubyLint::GlobalScope.definitions.lookup(:const, 'DRbIdConv').deep_freeze
@@ -1,81 +1,76 @@
1
1
  # This file was automatically generated, any manual changes will be lost the
2
2
  # next time this file is generated.
3
3
  #
4
- # Created: 2013-11-11 21:14:28 +0100
5
- # Platform: rbx 2.1.1
4
+ # Platform: rbx 2.2.3.n364
6
5
 
7
- RubyLint::GlobalScope.definitions.define_constant('DRbObject') do |klass|
8
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
6
+ RubyLint.registry.register('DRbObject') do |defs|
7
+ defs.define_constant('DRbObject') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
9
 
10
- klass.define_method('_load') do |method|
11
- method.define_argument('s')
12
- end
10
+ klass.define_method('_load') do |method|
11
+ method.define_argument('s')
12
+ end
13
13
 
14
- klass.define_method('initialize') do |method|
15
- method.define_optional_argument('sclass')
16
- method.define_optional_argument('name')
17
- method.define_optional_argument('under')
18
- end
14
+ klass.define_method('new_with') do |method|
15
+ method.define_argument('uri')
16
+ method.define_argument('ref')
17
+ end
19
18
 
20
- klass.define_method('new_with') do |method|
21
- method.define_argument('uri')
22
- method.define_argument('ref')
23
- end
19
+ klass.define_method('new_with_uri') do |method|
20
+ method.define_argument('uri')
21
+ end
24
22
 
25
- klass.define_method('new_with_uri') do |method|
26
- method.define_argument('uri')
27
- end
23
+ klass.define_method('prepare_backtrace') do |method|
24
+ method.define_argument('uri')
25
+ method.define_argument('result')
26
+ end
28
27
 
29
- klass.define_method('prepare_backtrace') do |method|
30
- method.define_argument('uri')
31
- method.define_argument('result')
32
- end
28
+ klass.define_method('with_friend') do |method|
29
+ method.define_argument('uri')
30
+ end
33
31
 
34
- klass.define_method('with_friend') do |method|
35
- method.define_argument('uri')
36
- end
32
+ klass.define_instance_method('==') do |method|
33
+ method.define_argument('other')
34
+ end
37
35
 
38
- klass.define_instance_method('==') do |method|
39
- method.define_argument('other')
40
- end
36
+ klass.define_instance_method('__drbref')
41
37
 
42
- klass.define_instance_method('__drbref')
38
+ klass.define_instance_method('__drburi')
43
39
 
44
- klass.define_instance_method('__drburi')
40
+ klass.define_instance_method('_dump') do |method|
41
+ method.define_argument('lv')
42
+ end
45
43
 
46
- klass.define_instance_method('_dump') do |method|
47
- method.define_argument('lv')
48
- end
44
+ klass.define_instance_method('eql?') do |method|
45
+ method.define_argument('other')
46
+ end
49
47
 
50
- klass.define_instance_method('eql?') do |method|
51
- method.define_argument('other')
52
- end
48
+ klass.define_instance_method('hash')
53
49
 
54
- klass.define_instance_method('hash')
50
+ klass.define_instance_method('initialize') do |method|
51
+ method.define_argument('obj')
52
+ method.define_optional_argument('uri')
55
53
 
56
- klass.define_instance_method('initialize') do |method|
57
- method.define_argument('obj')
58
- method.define_optional_argument('uri')
59
- end
54
+ method.returns { |object| object.instance }
55
+ end
60
56
 
61
- klass.define_instance_method('method_missing') do |method|
62
- method.define_argument('msg_id')
63
- method.define_rest_argument('a')
64
- method.define_block_argument('b')
65
- end
57
+ klass.define_instance_method('method_missing') do |method|
58
+ method.define_argument('msg_id')
59
+ method.define_rest_argument('a')
60
+ method.define_block_argument('b')
61
+ end
66
62
 
67
- klass.define_instance_method('pretty_print') do |method|
68
- method.define_argument('q')
69
- end
63
+ klass.define_instance_method('pretty_print') do |method|
64
+ method.define_argument('q')
65
+ end
70
66
 
71
- klass.define_instance_method('pretty_print_cycle') do |method|
72
- method.define_argument('q')
73
- end
67
+ klass.define_instance_method('pretty_print_cycle') do |method|
68
+ method.define_argument('q')
69
+ end
74
70
 
75
- klass.define_instance_method('respond_to?') do |method|
76
- method.define_argument('msg_id')
77
- method.define_optional_argument('priv')
71
+ klass.define_instance_method('respond_to?') do |method|
72
+ method.define_argument('msg_id')
73
+ method.define_optional_argument('priv')
74
+ end
78
75
  end
79
76
  end
80
-
81
- RubyLint::GlobalScope.definitions.lookup(:const, 'DRbObject').deep_freeze
@@ -1,17 +1,14 @@
1
1
  # This file was automatically generated, any manual changes will be lost the
2
2
  # next time this file is generated.
3
3
  #
4
- # Created: 2013-11-11 20:49:50 +0100
5
- # Platform: rbx 2.1.1
4
+ # Platform: rbx 2.2.3.n364
6
5
 
7
- RubyLint::GlobalScope.definitions.define_constant('DRbUndumped') do |klass|
8
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
6
+ RubyLint.registry.register('DRbUndumped') do |defs|
7
+ defs.define_constant('DRbUndumped') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
9
 
10
- klass.define_method('initialize')
11
-
12
- klass.define_instance_method('_dump') do |method|
13
- method.define_argument('dummy')
10
+ klass.define_instance_method('_dump') do |method|
11
+ method.define_argument('dummy')
12
+ end
14
13
  end
15
14
  end
16
-
17
- RubyLint::GlobalScope.definitions.lookup(:const, 'DRbUndumped').deep_freeze
@@ -1,2032 +1,1340 @@
1
- ##
2
- # Constant: Encoding
3
- # Created: 2013-04-09 14:56:17 +0200
4
- # Platform: rbx 2.0.0.rc1
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
5
3
  #
6
- RubyLint::GlobalScope.definitions.define_constant('Encoding') do |klass|
7
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
4
+ # Platform: rbx 2.2.3.n364
8
5
 
9
- klass.define_method('__class_init__')
6
+ RubyLint.registry.register('Encoding') do |defs|
7
+ defs.define_constant('Encoding') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
10
9
 
11
- klass.define_method('_load') do |method|
12
- method.define_argument('name')
13
- end
10
+ klass.define_method('_load') do |method|
11
+ method.define_argument('name')
12
+ end
14
13
 
15
- klass.define_method('aliases')
14
+ klass.define_method('aliases')
16
15
 
17
- klass.define_method('compatible?') do |method|
18
- method.define_argument('a')
19
- method.define_argument('b')
20
- end
16
+ klass.define_method('compatible?') do |method|
17
+ method.define_argument('a')
18
+ method.define_argument('b')
19
+ end
21
20
 
22
- klass.define_method('default_external')
21
+ klass.define_method('default_external')
23
22
 
24
- klass.define_method('default_external=') do |method|
25
- method.define_argument('enc')
26
- end
23
+ klass.define_method('default_external=') do |method|
24
+ method.define_argument('enc')
25
+ end
27
26
 
28
- klass.define_method('default_internal')
27
+ klass.define_method('default_internal')
29
28
 
30
- klass.define_method('default_internal=') do |method|
31
- method.define_argument('enc')
32
- end
29
+ klass.define_method('default_internal=') do |method|
30
+ method.define_argument('enc')
31
+ end
33
32
 
34
- klass.define_method('find') do |method|
35
- method.define_argument('name')
36
- end
33
+ klass.define_method('find') do |method|
34
+ method.define_argument('name')
35
+ end
37
36
 
38
- klass.define_method('list')
37
+ klass.define_method('list')
39
38
 
40
- klass.define_method('locale_charmap')
39
+ klass.define_method('locale_charmap')
41
40
 
42
- klass.define_method('name_list')
41
+ klass.define_method('name_list')
43
42
 
44
- klass.define_instance_method('_dump') do |method|
45
- method.define_argument('depth')
46
- end
43
+ klass.define_instance_method('_dump') do |method|
44
+ method.define_argument('depth')
45
+ end
47
46
 
48
- klass.define_instance_method('ascii_compatible?')
47
+ klass.define_instance_method('ascii_compatible?')
49
48
 
50
- klass.define_instance_method('dummy')
49
+ klass.define_instance_method('dummy')
51
50
 
52
- klass.define_instance_method('dummy?')
51
+ klass.define_instance_method('dummy?')
53
52
 
54
- klass.define_instance_method('inspect')
53
+ klass.define_instance_method('inspect')
55
54
 
56
- klass.define_instance_method('name')
55
+ klass.define_instance_method('name')
57
56
 
58
- klass.define_instance_method('names')
57
+ klass.define_instance_method('names')
59
58
 
60
- klass.define_instance_method('replicate') do |method|
61
- method.define_argument('name')
59
+ klass.define_instance_method('replicate') do |method|
60
+ method.define_argument('name')
61
+ end
62
+
63
+ klass.define_instance_method('to_s')
62
64
  end
63
65
 
64
- klass.define_instance_method('to_s')
65
- end
66
+ defs.define_constant('Encoding::ANSI_X3_4_1968') do |klass|
67
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
66
68
 
67
- ##
68
- # Constant: Encoding::ANSI_X3_4_1968
69
- # Created: 2013-04-09 14:56:17 +0200
70
- # Platform: rbx 2.0.0.rc1
71
- #
72
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ANSI_X3_4_1968') do |klass|
73
- end
69
+ end
74
70
 
75
- ##
76
- # Constant: Encoding::ASCII
77
- # Created: 2013-04-09 14:56:17 +0200
78
- # Platform: rbx 2.0.0.rc1
79
- #
80
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ASCII') do |klass|
81
- end
71
+ defs.define_constant('Encoding::ASCII') do |klass|
72
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
82
73
 
83
- ##
84
- # Constant: Encoding::ASCII_8BIT
85
- # Created: 2013-04-09 14:56:17 +0200
86
- # Platform: rbx 2.0.0.rc1
87
- #
88
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ASCII_8BIT') do |klass|
89
- end
74
+ end
90
75
 
91
- ##
92
- # Constant: Encoding::BIG5
93
- # Created: 2013-04-09 14:56:17 +0200
94
- # Platform: rbx 2.0.0.rc1
95
- #
96
- RubyLint::GlobalScope.definitions.define_constant('Encoding::BIG5') do |klass|
97
- end
76
+ defs.define_constant('Encoding::ASCII_8BIT') do |klass|
77
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
98
78
 
99
- ##
100
- # Constant: Encoding::BIG5_HKSCS
101
- # Created: 2013-04-09 14:56:17 +0200
102
- # Platform: rbx 2.0.0.rc1
103
- #
104
- RubyLint::GlobalScope.definitions.define_constant('Encoding::BIG5_HKSCS') do |klass|
105
- end
79
+ end
106
80
 
107
- ##
108
- # Constant: Encoding::BIG5_HKSCS_2008
109
- # Created: 2013-04-09 14:56:17 +0200
110
- # Platform: rbx 2.0.0.rc1
111
- #
112
- RubyLint::GlobalScope.definitions.define_constant('Encoding::BIG5_HKSCS_2008') do |klass|
113
- end
81
+ defs.define_constant('Encoding::BIG5') do |klass|
82
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
114
83
 
115
- ##
116
- # Constant: Encoding::BIG5_UAO
117
- # Created: 2013-04-09 14:56:17 +0200
118
- # Platform: rbx 2.0.0.rc1
119
- #
120
- RubyLint::GlobalScope.definitions.define_constant('Encoding::BIG5_UAO') do |klass|
121
- end
84
+ end
122
85
 
123
- ##
124
- # Constant: Encoding::BINARY
125
- # Created: 2013-04-09 14:56:17 +0200
126
- # Platform: rbx 2.0.0.rc1
127
- #
128
- RubyLint::GlobalScope.definitions.define_constant('Encoding::BINARY') do |klass|
129
- end
86
+ defs.define_constant('Encoding::BIG5_HKSCS') do |klass|
87
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
130
88
 
131
- ##
132
- # Constant: Encoding::Big5
133
- # Created: 2013-04-09 14:56:17 +0200
134
- # Platform: rbx 2.0.0.rc1
135
- #
136
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Big5') do |klass|
137
- end
89
+ end
138
90
 
139
- ##
140
- # Constant: Encoding::Big5_HKSCS
141
- # Created: 2013-04-09 14:56:17 +0200
142
- # Platform: rbx 2.0.0.rc1
143
- #
144
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Big5_HKSCS') do |klass|
145
- end
91
+ defs.define_constant('Encoding::BIG5_HKSCS_2008') do |klass|
92
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
146
93
 
147
- ##
148
- # Constant: Encoding::Big5_HKSCS_2008
149
- # Created: 2013-04-09 14:56:17 +0200
150
- # Platform: rbx 2.0.0.rc1
151
- #
152
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Big5_HKSCS_2008') do |klass|
153
- end
94
+ end
154
95
 
155
- ##
156
- # Constant: Encoding::Big5_UAO
157
- # Created: 2013-04-09 14:56:17 +0200
158
- # Platform: rbx 2.0.0.rc1
159
- #
160
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Big5_UAO') do |klass|
161
- end
96
+ defs.define_constant('Encoding::BIG5_UAO') do |klass|
97
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
162
98
 
163
- ##
164
- # Constant: Encoding::CP1250
165
- # Created: 2013-04-09 14:56:17 +0200
166
- # Platform: rbx 2.0.0.rc1
167
- #
168
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1250') do |klass|
169
- end
99
+ end
170
100
 
171
- ##
172
- # Constant: Encoding::CP1251
173
- # Created: 2013-04-09 14:56:17 +0200
174
- # Platform: rbx 2.0.0.rc1
175
- #
176
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1251') do |klass|
177
- end
101
+ defs.define_constant('Encoding::BINARY') do |klass|
102
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
178
103
 
179
- ##
180
- # Constant: Encoding::CP1252
181
- # Created: 2013-04-09 14:56:17 +0200
182
- # Platform: rbx 2.0.0.rc1
183
- #
184
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1252') do |klass|
185
- end
104
+ end
186
105
 
187
- ##
188
- # Constant: Encoding::CP1253
189
- # Created: 2013-04-09 14:56:17 +0200
190
- # Platform: rbx 2.0.0.rc1
191
- #
192
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1253') do |klass|
193
- end
106
+ defs.define_constant('Encoding::Big5') do |klass|
107
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
194
108
 
195
- ##
196
- # Constant: Encoding::CP1254
197
- # Created: 2013-04-09 14:56:17 +0200
198
- # Platform: rbx 2.0.0.rc1
199
- #
200
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1254') do |klass|
201
- end
109
+ end
202
110
 
203
- ##
204
- # Constant: Encoding::CP1255
205
- # Created: 2013-04-09 14:56:17 +0200
206
- # Platform: rbx 2.0.0.rc1
207
- #
208
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1255') do |klass|
209
- end
111
+ defs.define_constant('Encoding::Big5_HKSCS') do |klass|
112
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
210
113
 
211
- ##
212
- # Constant: Encoding::CP1256
213
- # Created: 2013-04-09 14:56:17 +0200
214
- # Platform: rbx 2.0.0.rc1
215
- #
216
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1256') do |klass|
217
- end
114
+ end
218
115
 
219
- ##
220
- # Constant: Encoding::CP1257
221
- # Created: 2013-04-09 14:56:17 +0200
222
- # Platform: rbx 2.0.0.rc1
223
- #
224
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1257') do |klass|
225
- end
116
+ defs.define_constant('Encoding::Big5_HKSCS_2008') do |klass|
117
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
226
118
 
227
- ##
228
- # Constant: Encoding::CP1258
229
- # Created: 2013-04-09 14:56:17 +0200
230
- # Platform: rbx 2.0.0.rc1
231
- #
232
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP1258') do |klass|
233
- end
119
+ end
234
120
 
235
- ##
236
- # Constant: Encoding::CP437
237
- # Created: 2013-04-09 14:56:17 +0200
238
- # Platform: rbx 2.0.0.rc1
239
- #
240
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP437') do |klass|
241
- end
121
+ defs.define_constant('Encoding::Big5_UAO') do |klass|
122
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
242
123
 
243
- ##
244
- # Constant: Encoding::CP50220
245
- # Created: 2013-04-09 14:56:17 +0200
246
- # Platform: rbx 2.0.0.rc1
247
- #
248
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP50220') do |klass|
249
- end
124
+ end
250
125
 
251
- ##
252
- # Constant: Encoding::CP50221
253
- # Created: 2013-04-09 14:56:17 +0200
254
- # Platform: rbx 2.0.0.rc1
255
- #
256
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP50221') do |klass|
257
- end
126
+ defs.define_constant('Encoding::CP1250') do |klass|
127
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
258
128
 
259
- ##
260
- # Constant: Encoding::CP51932
261
- # Created: 2013-04-09 14:56:17 +0200
262
- # Platform: rbx 2.0.0.rc1
263
- #
264
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP51932') do |klass|
265
- end
129
+ end
266
130
 
267
- ##
268
- # Constant: Encoding::CP65000
269
- # Created: 2013-04-09 14:56:17 +0200
270
- # Platform: rbx 2.0.0.rc1
271
- #
272
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP65000') do |klass|
273
- end
131
+ defs.define_constant('Encoding::CP1251') do |klass|
132
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
274
133
 
275
- ##
276
- # Constant: Encoding::CP65001
277
- # Created: 2013-04-09 14:56:17 +0200
278
- # Platform: rbx 2.0.0.rc1
279
- #
280
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP65001') do |klass|
281
- end
134
+ end
282
135
 
283
- ##
284
- # Constant: Encoding::CP737
285
- # Created: 2013-04-09 14:56:17 +0200
286
- # Platform: rbx 2.0.0.rc1
287
- #
288
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP737') do |klass|
289
- end
136
+ defs.define_constant('Encoding::CP1252') do |klass|
137
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
290
138
 
291
- ##
292
- # Constant: Encoding::CP775
293
- # Created: 2013-04-09 14:56:17 +0200
294
- # Platform: rbx 2.0.0.rc1
295
- #
296
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP775') do |klass|
297
- end
139
+ end
298
140
 
299
- ##
300
- # Constant: Encoding::CP850
301
- # Created: 2013-04-09 14:56:17 +0200
302
- # Platform: rbx 2.0.0.rc1
303
- #
304
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP850') do |klass|
305
- end
141
+ defs.define_constant('Encoding::CP1253') do |klass|
142
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
306
143
 
307
- ##
308
- # Constant: Encoding::CP852
309
- # Created: 2013-04-09 14:56:17 +0200
310
- # Platform: rbx 2.0.0.rc1
311
- #
312
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP852') do |klass|
313
- end
144
+ end
314
145
 
315
- ##
316
- # Constant: Encoding::CP855
317
- # Created: 2013-04-09 14:56:17 +0200
318
- # Platform: rbx 2.0.0.rc1
319
- #
320
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP855') do |klass|
321
- end
146
+ defs.define_constant('Encoding::CP1254') do |klass|
147
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
322
148
 
323
- ##
324
- # Constant: Encoding::CP857
325
- # Created: 2013-04-09 14:56:17 +0200
326
- # Platform: rbx 2.0.0.rc1
327
- #
328
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP857') do |klass|
329
- end
149
+ end
330
150
 
331
- ##
332
- # Constant: Encoding::CP860
333
- # Created: 2013-04-09 14:56:17 +0200
334
- # Platform: rbx 2.0.0.rc1
335
- #
336
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP860') do |klass|
337
- end
151
+ defs.define_constant('Encoding::CP1255') do |klass|
152
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
338
153
 
339
- ##
340
- # Constant: Encoding::CP861
341
- # Created: 2013-04-09 14:56:17 +0200
342
- # Platform: rbx 2.0.0.rc1
343
- #
344
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP861') do |klass|
345
- end
154
+ end
346
155
 
347
- ##
348
- # Constant: Encoding::CP862
349
- # Created: 2013-04-09 14:56:17 +0200
350
- # Platform: rbx 2.0.0.rc1
351
- #
352
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP862') do |klass|
353
- end
156
+ defs.define_constant('Encoding::CP1256') do |klass|
157
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
354
158
 
355
- ##
356
- # Constant: Encoding::CP863
357
- # Created: 2013-04-09 14:56:17 +0200
358
- # Platform: rbx 2.0.0.rc1
359
- #
360
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP863') do |klass|
361
- end
159
+ end
362
160
 
363
- ##
364
- # Constant: Encoding::CP864
365
- # Created: 2013-04-09 14:56:17 +0200
366
- # Platform: rbx 2.0.0.rc1
367
- #
368
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP864') do |klass|
369
- end
161
+ defs.define_constant('Encoding::CP1257') do |klass|
162
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
370
163
 
371
- ##
372
- # Constant: Encoding::CP865
373
- # Created: 2013-04-09 14:56:17 +0200
374
- # Platform: rbx 2.0.0.rc1
375
- #
376
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP865') do |klass|
377
- end
164
+ end
378
165
 
379
- ##
380
- # Constant: Encoding::CP866
381
- # Created: 2013-04-09 14:56:17 +0200
382
- # Platform: rbx 2.0.0.rc1
383
- #
384
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP866') do |klass|
385
- end
166
+ defs.define_constant('Encoding::CP1258') do |klass|
167
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
386
168
 
387
- ##
388
- # Constant: Encoding::CP869
389
- # Created: 2013-04-09 14:56:17 +0200
390
- # Platform: rbx 2.0.0.rc1
391
- #
392
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP869') do |klass|
393
- end
169
+ end
394
170
 
395
- ##
396
- # Constant: Encoding::CP874
397
- # Created: 2013-04-09 14:56:17 +0200
398
- # Platform: rbx 2.0.0.rc1
399
- #
400
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP874') do |klass|
401
- end
171
+ defs.define_constant('Encoding::CP437') do |klass|
172
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
402
173
 
403
- ##
404
- # Constant: Encoding::CP878
405
- # Created: 2013-04-09 14:56:17 +0200
406
- # Platform: rbx 2.0.0.rc1
407
- #
408
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP878') do |klass|
409
- end
174
+ end
410
175
 
411
- ##
412
- # Constant: Encoding::CP932
413
- # Created: 2013-04-09 14:56:17 +0200
414
- # Platform: rbx 2.0.0.rc1
415
- #
416
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP932') do |klass|
417
- end
176
+ defs.define_constant('Encoding::CP50220') do |klass|
177
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
418
178
 
419
- ##
420
- # Constant: Encoding::CP936
421
- # Created: 2013-04-09 14:56:17 +0200
422
- # Platform: rbx 2.0.0.rc1
423
- #
424
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP936') do |klass|
425
- end
179
+ end
426
180
 
427
- ##
428
- # Constant: Encoding::CP949
429
- # Created: 2013-04-09 14:56:17 +0200
430
- # Platform: rbx 2.0.0.rc1
431
- #
432
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP949') do |klass|
433
- end
181
+ defs.define_constant('Encoding::CP50221') do |klass|
182
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
434
183
 
435
- ##
436
- # Constant: Encoding::CP950
437
- # Created: 2013-04-09 14:56:17 +0200
438
- # Platform: rbx 2.0.0.rc1
439
- #
440
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP950') do |klass|
441
- end
184
+ end
442
185
 
443
- ##
444
- # Constant: Encoding::CP951
445
- # Created: 2013-04-09 14:56:17 +0200
446
- # Platform: rbx 2.0.0.rc1
447
- #
448
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CP951') do |klass|
449
- end
186
+ defs.define_constant('Encoding::CP51932') do |klass|
187
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
450
188
 
451
- ##
452
- # Constant: Encoding::CSWINDOWS31J
453
- # Created: 2013-04-09 14:56:17 +0200
454
- # Platform: rbx 2.0.0.rc1
455
- #
456
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CSWINDOWS31J') do |klass|
457
- end
189
+ end
458
190
 
459
- ##
460
- # Constant: Encoding::CompatibilityError
461
- # Created: 2013-04-09 14:56:17 +0200
462
- # Platform: rbx 2.0.0.rc1
463
- #
464
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CompatibilityError') do |klass|
465
- klass.inherits(RubyLint::GlobalScope.constant_proxy('EncodingError'))
466
- end
191
+ defs.define_constant('Encoding::CP65000') do |klass|
192
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
467
193
 
468
- ##
469
- # Constant: Encoding::Converter
470
- # Created: 2013-04-09 14:56:17 +0200
471
- # Platform: rbx 2.0.0.rc1
472
- #
473
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter') do |klass|
474
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
194
+ end
195
+
196
+ defs.define_constant('Encoding::CP65001') do |klass|
197
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
475
198
 
476
- klass.define_method('__class_init__')
199
+ end
477
200
 
478
- klass.define_method('allocate')
201
+ defs.define_constant('Encoding::CP737') do |klass|
202
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
479
203
 
480
- klass.define_method('asciicompat_encoding') do |method|
481
- method.define_argument('string_or_encoding')
482
204
  end
483
205
 
484
- klass.define_method('search_convpath') do |method|
485
- method.define_argument('from')
486
- method.define_argument('to')
487
- method.define_optional_argument('options')
206
+ defs.define_constant('Encoding::CP775') do |klass|
207
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
208
+
488
209
  end
489
210
 
490
- klass.define_instance_method('convert') do |method|
491
- method.define_argument('str')
211
+ defs.define_constant('Encoding::CP850') do |klass|
212
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
213
+
492
214
  end
493
215
 
494
- klass.define_instance_method('convpath')
216
+ defs.define_constant('Encoding::CP852') do |klass|
217
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
218
+
219
+ end
495
220
 
496
- klass.define_instance_method('destination_encoding')
221
+ defs.define_constant('Encoding::CP855') do |klass|
222
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
497
223
 
498
- klass.define_instance_method('destination_encoding=')
224
+ end
499
225
 
500
- klass.define_instance_method('finish')
226
+ defs.define_constant('Encoding::CP857') do |klass|
227
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
501
228
 
502
- klass.define_instance_method('initialize') do |method|
503
- method.define_argument('from')
504
- method.define_argument('to')
505
- method.define_optional_argument('options')
506
229
  end
507
230
 
508
- klass.define_instance_method('last_error')
231
+ defs.define_constant('Encoding::CP860') do |klass|
232
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
509
233
 
510
- klass.define_instance_method('primitive_convert') do |method|
511
- method.define_argument('source')
512
- method.define_argument('target')
513
- method.define_optional_argument('offset')
514
- method.define_optional_argument('size')
515
- method.define_optional_argument('options')
516
234
  end
517
235
 
518
- klass.define_instance_method('primitive_errinfo')
236
+ defs.define_constant('Encoding::CP861') do |klass|
237
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
519
238
 
520
- klass.define_instance_method('putback') do |method|
521
- method.define_optional_argument('maxbytes')
522
239
  end
523
240
 
524
- klass.define_instance_method('replacement')
241
+ defs.define_constant('Encoding::CP862') do |klass|
242
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
525
243
 
526
- klass.define_instance_method('replacement=') do |method|
527
- method.define_argument('str')
528
244
  end
529
245
 
530
- klass.define_instance_method('source_encoding')
246
+ defs.define_constant('Encoding::CP863') do |klass|
247
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
531
248
 
532
- klass.define_instance_method('source_encoding=')
533
- end
249
+ end
534
250
 
535
- ##
536
- # Constant: Encoding::Converter::AFTER_OUTPUT
537
- # Created: 2013-04-09 14:56:17 +0200
538
- # Platform: rbx 2.0.0.rc1
539
- #
540
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::AFTER_OUTPUT') do |klass|
541
- end
251
+ defs.define_constant('Encoding::CP864') do |klass|
252
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
542
253
 
543
- ##
544
- # Constant: Encoding::Converter::CRLF_NEWLINE_DECORATOR
545
- # Created: 2013-04-09 14:56:17 +0200
546
- # Platform: rbx 2.0.0.rc1
547
- #
548
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::CRLF_NEWLINE_DECORATOR') do |klass|
549
- end
254
+ end
550
255
 
551
- ##
552
- # Constant: Encoding::Converter::CR_NEWLINE_DECORATOR
553
- # Created: 2013-04-09 14:56:17 +0200
554
- # Platform: rbx 2.0.0.rc1
555
- #
556
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::CR_NEWLINE_DECORATOR') do |klass|
557
- end
256
+ defs.define_constant('Encoding::CP865') do |klass|
257
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
558
258
 
559
- ##
560
- # Constant: Encoding::Converter::INVALID_MASK
561
- # Created: 2013-04-09 14:56:17 +0200
562
- # Platform: rbx 2.0.0.rc1
563
- #
564
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::INVALID_MASK') do |klass|
565
- end
259
+ end
566
260
 
567
- ##
568
- # Constant: Encoding::Converter::INVALID_REPLACE
569
- # Created: 2013-04-09 14:56:17 +0200
570
- # Platform: rbx 2.0.0.rc1
571
- #
572
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::INVALID_REPLACE') do |klass|
573
- end
261
+ defs.define_constant('Encoding::CP866') do |klass|
262
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
574
263
 
575
- ##
576
- # Constant: Encoding::Converter::PARTIAL_INPUT
577
- # Created: 2013-04-09 14:56:17 +0200
578
- # Platform: rbx 2.0.0.rc1
579
- #
580
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::PARTIAL_INPUT') do |klass|
581
- end
264
+ end
582
265
 
583
- ##
584
- # Constant: Encoding::Converter::TranscodingPath
585
- # Created: 2013-04-09 14:56:17 +0200
586
- # Platform: rbx 2.0.0.rc1
587
- #
588
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::TranscodingPath') do |klass|
589
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
266
+ defs.define_constant('Encoding::CP869') do |klass|
267
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
590
268
 
591
- klass.define_method('[]') do |method|
592
- method.define_argument('source')
593
- method.define_argument('target')
594
269
  end
595
270
 
596
- klass.define_method('__class_init__')
271
+ defs.define_constant('Encoding::CP874') do |klass|
272
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
597
273
 
598
- klass.define_method('cache_loaded')
274
+ end
599
275
 
600
- klass.define_method('cache_loaded?')
276
+ defs.define_constant('Encoding::CP878') do |klass|
277
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
601
278
 
602
- klass.define_method('cache_threshold?')
279
+ end
603
280
 
604
- klass.define_method('cache_valid?')
281
+ defs.define_constant('Encoding::CP932') do |klass|
282
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
605
283
 
606
- klass.define_method('default_transcoders?')
284
+ end
607
285
 
608
- klass.define_method('disable_cache')
286
+ defs.define_constant('Encoding::CP936') do |klass|
287
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
609
288
 
610
- klass.define_method('get_converters') do |method|
611
- method.define_argument('path')
612
289
  end
613
290
 
614
- klass.define_method('load_cache?')
291
+ defs.define_constant('Encoding::CP949') do |klass|
292
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
293
+
294
+ end
615
295
 
616
- klass.define_method('paths')
296
+ defs.define_constant('Encoding::CP950') do |klass|
297
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
617
298
 
618
- klass.define_method('search') do |method|
619
- method.define_argument('source')
620
- method.define_argument('target')
621
299
  end
622
- end
623
300
 
624
- ##
625
- # Constant: Encoding::Converter::UNDEF_HEX_CHARREF
626
- # Created: 2013-04-09 14:56:17 +0200
627
- # Platform: rbx 2.0.0.rc1
628
- #
629
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::UNDEF_HEX_CHARREF') do |klass|
630
- end
301
+ defs.define_constant('Encoding::CP951') do |klass|
302
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
631
303
 
632
- ##
633
- # Constant: Encoding::Converter::UNDEF_MASK
634
- # Created: 2013-04-09 14:56:17 +0200
635
- # Platform: rbx 2.0.0.rc1
636
- #
637
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::UNDEF_MASK') do |klass|
638
- end
304
+ end
639
305
 
640
- ##
641
- # Constant: Encoding::Converter::UNDEF_REPLACE
642
- # Created: 2013-04-09 14:56:17 +0200
643
- # Platform: rbx 2.0.0.rc1
644
- #
645
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::UNDEF_REPLACE') do |klass|
646
- end
306
+ defs.define_constant('Encoding::CSWINDOWS31J') do |klass|
307
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
647
308
 
648
- ##
649
- # Constant: Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
650
- # Created: 2013-04-09 14:56:17 +0200
651
- # Platform: rbx 2.0.0.rc1
652
- #
653
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR') do |klass|
654
- end
309
+ end
655
310
 
656
- ##
657
- # Constant: Encoding::Converter::XML_ATTR_CONTENT_DECORATOR
658
- # Created: 2013-04-09 14:56:17 +0200
659
- # Platform: rbx 2.0.0.rc1
660
- #
661
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::XML_ATTR_CONTENT_DECORATOR') do |klass|
662
- end
311
+ defs.define_constant('Encoding::CompatibilityError') do |klass|
312
+ klass.inherits(defs.constant_proxy('EncodingError', RubyLint.registry))
663
313
 
664
- ##
665
- # Constant: Encoding::Converter::XML_ATTR_QUOTE_DECORATOR
666
- # Created: 2013-04-09 14:56:17 +0200
667
- # Platform: rbx 2.0.0.rc1
668
- #
669
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::XML_ATTR_QUOTE_DECORATOR') do |klass|
670
- end
314
+ end
671
315
 
672
- ##
673
- # Constant: Encoding::Converter::XML_TEXT_DECORATOR
674
- # Created: 2013-04-09 14:56:17 +0200
675
- # Platform: rbx 2.0.0.rc1
676
- #
677
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Converter::XML_TEXT_DECORATOR') do |klass|
678
- end
316
+ defs.define_constant('Encoding::Converter') do |klass|
317
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
679
318
 
680
- ##
681
- # Constant: Encoding::ConverterNotFoundError
682
- # Created: 2013-04-09 14:56:17 +0200
683
- # Platform: rbx 2.0.0.rc1
684
- #
685
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ConverterNotFoundError') do |klass|
686
- klass.inherits(RubyLint::GlobalScope.constant_proxy('EncodingError'))
687
- end
319
+ klass.define_method('allocate')
688
320
 
689
- ##
690
- # Constant: Encoding::CsWindows31J
691
- # Created: 2013-04-09 14:56:17 +0200
692
- # Platform: rbx 2.0.0.rc1
693
- #
694
- RubyLint::GlobalScope.definitions.define_constant('Encoding::CsWindows31J') do |klass|
695
- end
321
+ klass.define_method('asciicompat_encoding') do |method|
322
+ method.define_argument('string_or_encoding')
323
+ end
696
324
 
697
- ##
698
- # Constant: Encoding::EMACS_MULE
699
- # Created: 2013-04-09 14:56:17 +0200
700
- # Platform: rbx 2.0.0.rc1
701
- #
702
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EMACS_MULE') do |klass|
703
- end
325
+ klass.define_method('search_convpath') do |method|
326
+ method.define_argument('from')
327
+ method.define_argument('to')
328
+ method.define_optional_argument('options')
329
+ end
704
330
 
705
- ##
706
- # Constant: Encoding::EUCCN
707
- # Created: 2013-04-09 14:56:17 +0200
708
- # Platform: rbx 2.0.0.rc1
709
- #
710
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUCCN') do |klass|
711
- end
331
+ klass.define_instance_method('convert') do |method|
332
+ method.define_argument('str')
333
+ end
712
334
 
713
- ##
714
- # Constant: Encoding::EUCJP
715
- # Created: 2013-04-09 14:56:17 +0200
716
- # Platform: rbx 2.0.0.rc1
717
- #
718
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUCJP') do |klass|
719
- end
335
+ klass.define_instance_method('convpath')
720
336
 
721
- ##
722
- # Constant: Encoding::EUCJP_MS
723
- # Created: 2013-04-09 14:56:17 +0200
724
- # Platform: rbx 2.0.0.rc1
725
- #
726
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUCJP_MS') do |klass|
727
- end
337
+ klass.define_instance_method('destination_encoding')
728
338
 
729
- ##
730
- # Constant: Encoding::EUCKR
731
- # Created: 2013-04-09 14:56:17 +0200
732
- # Platform: rbx 2.0.0.rc1
733
- #
734
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUCKR') do |klass|
735
- end
339
+ klass.define_instance_method('destination_encoding=')
736
340
 
737
- ##
738
- # Constant: Encoding::EUCTW
739
- # Created: 2013-04-09 14:56:17 +0200
740
- # Platform: rbx 2.0.0.rc1
741
- #
742
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUCTW') do |klass|
743
- end
341
+ klass.define_instance_method('finish')
744
342
 
745
- ##
746
- # Constant: Encoding::EUC_CN
747
- # Created: 2013-04-09 14:56:17 +0200
748
- # Platform: rbx 2.0.0.rc1
749
- #
750
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUC_CN') do |klass|
751
- end
343
+ klass.define_instance_method('initialize') do |method|
344
+ method.define_argument('from')
345
+ method.define_argument('to')
346
+ method.define_optional_argument('options')
752
347
 
753
- ##
754
- # Constant: Encoding::EUC_JP
755
- # Created: 2013-04-09 14:56:17 +0200
756
- # Platform: rbx 2.0.0.rc1
757
- #
758
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUC_JP') do |klass|
759
- end
348
+ method.returns { |object| object.instance }
349
+ end
760
350
 
761
- ##
762
- # Constant: Encoding::EUC_JP_MS
763
- # Created: 2013-04-09 14:56:17 +0200
764
- # Platform: rbx 2.0.0.rc1
765
- #
766
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUC_JP_MS') do |klass|
767
- end
351
+ klass.define_instance_method('last_error')
768
352
 
769
- ##
770
- # Constant: Encoding::EUC_KR
771
- # Created: 2013-04-09 14:56:17 +0200
772
- # Platform: rbx 2.0.0.rc1
773
- #
774
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUC_KR') do |klass|
775
- end
353
+ klass.define_instance_method('options')
776
354
 
777
- ##
778
- # Constant: Encoding::EUC_TW
779
- # Created: 2013-04-09 14:56:17 +0200
780
- # Platform: rbx 2.0.0.rc1
781
- #
782
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EUC_TW') do |klass|
783
- end
355
+ klass.define_instance_method('primitive_convert') do |method|
356
+ method.define_argument('source')
357
+ method.define_argument('target')
358
+ method.define_optional_argument('offset')
359
+ method.define_optional_argument('size')
360
+ method.define_optional_argument('options')
361
+ end
784
362
 
785
- ##
786
- # Constant: Encoding::Emacs_Mule
787
- # Created: 2013-04-09 14:56:17 +0200
788
- # Platform: rbx 2.0.0.rc1
789
- #
790
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Emacs_Mule') do |klass|
791
- end
363
+ klass.define_instance_method('primitive_errinfo')
792
364
 
793
- ##
794
- # Constant: Encoding::EncodingList
795
- # Created: 2013-04-09 14:56:17 +0200
796
- # Platform: rbx 2.0.0.rc1
797
- #
798
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EncodingList') do |klass|
799
- end
365
+ klass.define_instance_method('putback') do |method|
366
+ method.define_optional_argument('maxbytes')
367
+ end
800
368
 
801
- ##
802
- # Constant: Encoding::EncodingMap
803
- # Created: 2013-04-09 14:56:17 +0200
804
- # Platform: rbx 2.0.0.rc1
805
- #
806
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EncodingMap') do |klass|
807
- end
369
+ klass.define_instance_method('replacement')
808
370
 
809
- ##
810
- # Constant: Encoding::EucCN
811
- # Created: 2013-04-09 14:56:17 +0200
812
- # Platform: rbx 2.0.0.rc1
813
- #
814
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EucCN') do |klass|
815
- end
371
+ klass.define_instance_method('replacement=') do |method|
372
+ method.define_argument('str')
373
+ end
816
374
 
817
- ##
818
- # Constant: Encoding::EucJP
819
- # Created: 2013-04-09 14:56:17 +0200
820
- # Platform: rbx 2.0.0.rc1
821
- #
822
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EucJP') do |klass|
823
- end
375
+ klass.define_instance_method('source_encoding')
824
376
 
825
- ##
826
- # Constant: Encoding::EucJP_ms
827
- # Created: 2013-04-09 14:56:17 +0200
828
- # Platform: rbx 2.0.0.rc1
829
- #
830
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EucJP_ms') do |klass|
831
- end
377
+ klass.define_instance_method('source_encoding=')
378
+ end
832
379
 
833
- ##
834
- # Constant: Encoding::EucKR
835
- # Created: 2013-04-09 14:56:17 +0200
836
- # Platform: rbx 2.0.0.rc1
837
- #
838
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EucKR') do |klass|
839
- end
380
+ defs.define_constant('Encoding::Converter::AFTER_OUTPUT') do |klass|
381
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
840
382
 
841
- ##
842
- # Constant: Encoding::EucTW
843
- # Created: 2013-04-09 14:56:17 +0200
844
- # Platform: rbx 2.0.0.rc1
845
- #
846
- RubyLint::GlobalScope.definitions.define_constant('Encoding::EucTW') do |klass|
847
- end
383
+ end
848
384
 
849
- ##
850
- # Constant: Encoding::GB12345
851
- # Created: 2013-04-09 14:56:17 +0200
852
- # Platform: rbx 2.0.0.rc1
853
- #
854
- RubyLint::GlobalScope.definitions.define_constant('Encoding::GB12345') do |klass|
855
- end
385
+ defs.define_constant('Encoding::Converter::CRLF_NEWLINE_DECORATOR') do |klass|
386
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
856
387
 
857
- ##
858
- # Constant: Encoding::GB18030
859
- # Created: 2013-04-09 14:56:17 +0200
860
- # Platform: rbx 2.0.0.rc1
861
- #
862
- RubyLint::GlobalScope.definitions.define_constant('Encoding::GB18030') do |klass|
863
- end
388
+ end
864
389
 
865
- ##
866
- # Constant: Encoding::GB1988
867
- # Created: 2013-04-09 14:56:17 +0200
868
- # Platform: rbx 2.0.0.rc1
869
- #
870
- RubyLint::GlobalScope.definitions.define_constant('Encoding::GB1988') do |klass|
871
- end
390
+ defs.define_constant('Encoding::Converter::CR_NEWLINE_DECORATOR') do |klass|
391
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
872
392
 
873
- ##
874
- # Constant: Encoding::GB2312
875
- # Created: 2013-04-09 14:56:17 +0200
876
- # Platform: rbx 2.0.0.rc1
877
- #
878
- RubyLint::GlobalScope.definitions.define_constant('Encoding::GB2312') do |klass|
879
- end
393
+ end
880
394
 
881
- ##
882
- # Constant: Encoding::GBK
883
- # Created: 2013-04-09 14:56:17 +0200
884
- # Platform: rbx 2.0.0.rc1
885
- #
886
- RubyLint::GlobalScope.definitions.define_constant('Encoding::GBK') do |klass|
887
- end
395
+ defs.define_constant('Encoding::Converter::INVALID_MASK') do |klass|
396
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
888
397
 
889
- ##
890
- # Constant: Encoding::IBM437
891
- # Created: 2013-04-09 14:56:17 +0200
892
- # Platform: rbx 2.0.0.rc1
893
- #
894
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM437') do |klass|
895
- end
398
+ end
896
399
 
897
- ##
898
- # Constant: Encoding::IBM737
899
- # Created: 2013-04-09 14:56:17 +0200
900
- # Platform: rbx 2.0.0.rc1
901
- #
902
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM737') do |klass|
903
- end
400
+ defs.define_constant('Encoding::Converter::INVALID_REPLACE') do |klass|
401
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
904
402
 
905
- ##
906
- # Constant: Encoding::IBM775
907
- # Created: 2013-04-09 14:56:17 +0200
908
- # Platform: rbx 2.0.0.rc1
909
- #
910
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM775') do |klass|
911
- end
403
+ end
912
404
 
913
- ##
914
- # Constant: Encoding::IBM850
915
- # Created: 2013-04-09 14:56:17 +0200
916
- # Platform: rbx 2.0.0.rc1
917
- #
918
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM850') do |klass|
919
- end
405
+ defs.define_constant('Encoding::Converter::PARTIAL_INPUT') do |klass|
406
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
920
407
 
921
- ##
922
- # Constant: Encoding::IBM852
923
- # Created: 2013-04-09 14:56:17 +0200
924
- # Platform: rbx 2.0.0.rc1
925
- #
926
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM852') do |klass|
927
- end
408
+ end
928
409
 
929
- ##
930
- # Constant: Encoding::IBM855
931
- # Created: 2013-04-09 14:56:17 +0200
932
- # Platform: rbx 2.0.0.rc1
933
- #
934
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM855') do |klass|
935
- end
410
+ defs.define_constant('Encoding::Converter::TranscodingPath') do |klass|
411
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
936
412
 
937
- ##
938
- # Constant: Encoding::IBM857
939
- # Created: 2013-04-09 14:56:17 +0200
940
- # Platform: rbx 2.0.0.rc1
941
- #
942
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM857') do |klass|
943
- end
413
+ klass.define_method('[]') do |method|
414
+ method.define_argument('source')
415
+ method.define_argument('target')
416
+ end
944
417
 
945
- ##
946
- # Constant: Encoding::IBM860
947
- # Created: 2013-04-09 14:56:17 +0200
948
- # Platform: rbx 2.0.0.rc1
949
- #
950
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM860') do |klass|
951
- end
418
+ klass.define_method('cache_loaded')
952
419
 
953
- ##
954
- # Constant: Encoding::IBM861
955
- # Created: 2013-04-09 14:56:17 +0200
956
- # Platform: rbx 2.0.0.rc1
957
- #
958
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM861') do |klass|
959
- end
420
+ klass.define_method('cache_loaded?')
960
421
 
961
- ##
962
- # Constant: Encoding::IBM862
963
- # Created: 2013-04-09 14:56:17 +0200
964
- # Platform: rbx 2.0.0.rc1
965
- #
966
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM862') do |klass|
967
- end
422
+ klass.define_method('cache_threshold?')
968
423
 
969
- ##
970
- # Constant: Encoding::IBM863
971
- # Created: 2013-04-09 14:56:17 +0200
972
- # Platform: rbx 2.0.0.rc1
973
- #
974
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM863') do |klass|
975
- end
424
+ klass.define_method('cache_valid?')
976
425
 
977
- ##
978
- # Constant: Encoding::IBM864
979
- # Created: 2013-04-09 14:56:17 +0200
980
- # Platform: rbx 2.0.0.rc1
981
- #
982
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM864') do |klass|
983
- end
426
+ klass.define_method('default_transcoders?')
984
427
 
985
- ##
986
- # Constant: Encoding::IBM865
987
- # Created: 2013-04-09 14:56:17 +0200
988
- # Platform: rbx 2.0.0.rc1
989
- #
990
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM865') do |klass|
991
- end
428
+ klass.define_method('disable_cache')
992
429
 
993
- ##
994
- # Constant: Encoding::IBM866
995
- # Created: 2013-04-09 14:56:17 +0200
996
- # Platform: rbx 2.0.0.rc1
997
- #
998
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM866') do |klass|
999
- end
430
+ klass.define_method('get_converters') do |method|
431
+ method.define_argument('path')
432
+ end
1000
433
 
1001
- ##
1002
- # Constant: Encoding::IBM869
1003
- # Created: 2013-04-09 14:56:17 +0200
1004
- # Platform: rbx 2.0.0.rc1
1005
- #
1006
- RubyLint::GlobalScope.definitions.define_constant('Encoding::IBM869') do |klass|
1007
- end
434
+ klass.define_method('load_cache?')
1008
435
 
1009
- ##
1010
- # Constant: Encoding::ISO2022_JP
1011
- # Created: 2013-04-09 14:56:17 +0200
1012
- # Platform: rbx 2.0.0.rc1
1013
- #
1014
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO2022_JP') do |klass|
1015
- end
436
+ klass.define_method('paths')
1016
437
 
1017
- ##
1018
- # Constant: Encoding::ISO2022_JP2
1019
- # Created: 2013-04-09 14:56:17 +0200
1020
- # Platform: rbx 2.0.0.rc1
1021
- #
1022
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO2022_JP2') do |klass|
1023
- end
438
+ klass.define_method('search') do |method|
439
+ method.define_argument('source')
440
+ method.define_argument('target')
441
+ end
442
+ end
1024
443
 
1025
- ##
1026
- # Constant: Encoding::ISO8859_1
1027
- # Created: 2013-04-09 14:56:17 +0200
1028
- # Platform: rbx 2.0.0.rc1
1029
- #
1030
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_1') do |klass|
1031
- end
444
+ defs.define_constant('Encoding::Converter::UNDEF_HEX_CHARREF') do |klass|
445
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1032
446
 
1033
- ##
1034
- # Constant: Encoding::ISO8859_10
1035
- # Created: 2013-04-09 14:56:17 +0200
1036
- # Platform: rbx 2.0.0.rc1
1037
- #
1038
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_10') do |klass|
1039
- end
447
+ end
1040
448
 
1041
- ##
1042
- # Constant: Encoding::ISO8859_11
1043
- # Created: 2013-04-09 14:56:17 +0200
1044
- # Platform: rbx 2.0.0.rc1
1045
- #
1046
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_11') do |klass|
1047
- end
449
+ defs.define_constant('Encoding::Converter::UNDEF_MASK') do |klass|
450
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1048
451
 
1049
- ##
1050
- # Constant: Encoding::ISO8859_13
1051
- # Created: 2013-04-09 14:56:17 +0200
1052
- # Platform: rbx 2.0.0.rc1
1053
- #
1054
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_13') do |klass|
1055
- end
452
+ end
1056
453
 
1057
- ##
1058
- # Constant: Encoding::ISO8859_14
1059
- # Created: 2013-04-09 14:56:17 +0200
1060
- # Platform: rbx 2.0.0.rc1
1061
- #
1062
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_14') do |klass|
1063
- end
454
+ defs.define_constant('Encoding::Converter::UNDEF_REPLACE') do |klass|
455
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1064
456
 
1065
- ##
1066
- # Constant: Encoding::ISO8859_15
1067
- # Created: 2013-04-09 14:56:17 +0200
1068
- # Platform: rbx 2.0.0.rc1
1069
- #
1070
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_15') do |klass|
1071
- end
457
+ end
1072
458
 
1073
- ##
1074
- # Constant: Encoding::ISO8859_16
1075
- # Created: 2013-04-09 14:56:17 +0200
1076
- # Platform: rbx 2.0.0.rc1
1077
- #
1078
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_16') do |klass|
1079
- end
459
+ defs.define_constant('Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR') do |klass|
460
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1080
461
 
1081
- ##
1082
- # Constant: Encoding::ISO8859_2
1083
- # Created: 2013-04-09 14:56:17 +0200
1084
- # Platform: rbx 2.0.0.rc1
1085
- #
1086
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_2') do |klass|
1087
- end
462
+ end
1088
463
 
1089
- ##
1090
- # Constant: Encoding::ISO8859_3
1091
- # Created: 2013-04-09 14:56:17 +0200
1092
- # Platform: rbx 2.0.0.rc1
1093
- #
1094
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_3') do |klass|
1095
- end
464
+ defs.define_constant('Encoding::Converter::XML_ATTR_CONTENT_DECORATOR') do |klass|
465
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1096
466
 
1097
- ##
1098
- # Constant: Encoding::ISO8859_4
1099
- # Created: 2013-04-09 14:56:17 +0200
1100
- # Platform: rbx 2.0.0.rc1
1101
- #
1102
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_4') do |klass|
1103
- end
467
+ end
1104
468
 
1105
- ##
1106
- # Constant: Encoding::ISO8859_5
1107
- # Created: 2013-04-09 14:56:17 +0200
1108
- # Platform: rbx 2.0.0.rc1
1109
- #
1110
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_5') do |klass|
1111
- end
469
+ defs.define_constant('Encoding::Converter::XML_ATTR_QUOTE_DECORATOR') do |klass|
470
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1112
471
 
1113
- ##
1114
- # Constant: Encoding::ISO8859_6
1115
- # Created: 2013-04-09 14:56:17 +0200
1116
- # Platform: rbx 2.0.0.rc1
1117
- #
1118
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_6') do |klass|
1119
- end
472
+ end
1120
473
 
1121
- ##
1122
- # Constant: Encoding::ISO8859_7
1123
- # Created: 2013-04-09 14:56:17 +0200
1124
- # Platform: rbx 2.0.0.rc1
1125
- #
1126
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_7') do |klass|
1127
- end
474
+ defs.define_constant('Encoding::Converter::XML_TEXT_DECORATOR') do |klass|
475
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1128
476
 
1129
- ##
1130
- # Constant: Encoding::ISO8859_8
1131
- # Created: 2013-04-09 14:56:17 +0200
1132
- # Platform: rbx 2.0.0.rc1
1133
- #
1134
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_8') do |klass|
1135
- end
477
+ end
1136
478
 
1137
- ##
1138
- # Constant: Encoding::ISO8859_9
1139
- # Created: 2013-04-09 14:56:18 +0200
1140
- # Platform: rbx 2.0.0.rc1
1141
- #
1142
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO8859_9') do |klass|
1143
- end
479
+ defs.define_constant('Encoding::ConverterNotFoundError') do |klass|
480
+ klass.inherits(defs.constant_proxy('EncodingError', RubyLint.registry))
1144
481
 
1145
- ##
1146
- # Constant: Encoding::ISO_2022_JP
1147
- # Created: 2013-04-09 14:56:18 +0200
1148
- # Platform: rbx 2.0.0.rc1
1149
- #
1150
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_2022_JP') do |klass|
1151
- end
482
+ end
1152
483
 
1153
- ##
1154
- # Constant: Encoding::ISO_2022_JP_2
1155
- # Created: 2013-04-09 14:56:18 +0200
1156
- # Platform: rbx 2.0.0.rc1
1157
- #
1158
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_2022_JP_2') do |klass|
1159
- end
484
+ defs.define_constant('Encoding::CsWindows31J') do |klass|
485
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1160
486
 
1161
- ##
1162
- # Constant: Encoding::ISO_2022_JP_KDDI
1163
- # Created: 2013-04-09 14:56:18 +0200
1164
- # Platform: rbx 2.0.0.rc1
1165
- #
1166
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_2022_JP_KDDI') do |klass|
1167
- end
487
+ end
1168
488
 
1169
- ##
1170
- # Constant: Encoding::ISO_8859_1
1171
- # Created: 2013-04-09 14:56:18 +0200
1172
- # Platform: rbx 2.0.0.rc1
1173
- #
1174
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_1') do |klass|
1175
- end
489
+ defs.define_constant('Encoding::EMACS_MULE') do |klass|
490
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1176
491
 
1177
- ##
1178
- # Constant: Encoding::ISO_8859_10
1179
- # Created: 2013-04-09 14:56:18 +0200
1180
- # Platform: rbx 2.0.0.rc1
1181
- #
1182
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_10') do |klass|
1183
- end
492
+ end
1184
493
 
1185
- ##
1186
- # Constant: Encoding::ISO_8859_11
1187
- # Created: 2013-04-09 14:56:18 +0200
1188
- # Platform: rbx 2.0.0.rc1
1189
- #
1190
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_11') do |klass|
1191
- end
494
+ defs.define_constant('Encoding::EUCCN') do |klass|
495
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
496
+
497
+ end
498
+
499
+ defs.define_constant('Encoding::EUCJP') do |klass|
500
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
501
+
502
+ end
503
+
504
+ defs.define_constant('Encoding::EUCJP_MS') do |klass|
505
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
506
+
507
+ end
508
+
509
+ defs.define_constant('Encoding::EUCKR') do |klass|
510
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
511
+
512
+ end
513
+
514
+ defs.define_constant('Encoding::EUCTW') do |klass|
515
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
516
+
517
+ end
518
+
519
+ defs.define_constant('Encoding::EUC_CN') do |klass|
520
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
521
+
522
+ end
523
+
524
+ defs.define_constant('Encoding::EUC_JISX0213') do |klass|
525
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
526
+
527
+ end
528
+
529
+ defs.define_constant('Encoding::EUC_JP') do |klass|
530
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
531
+
532
+ end
533
+
534
+ defs.define_constant('Encoding::EUC_JP_2004') do |klass|
535
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
536
+
537
+ end
538
+
539
+ defs.define_constant('Encoding::EUC_JP_MS') do |klass|
540
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
541
+
542
+ end
543
+
544
+ defs.define_constant('Encoding::EUC_KR') do |klass|
545
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
546
+
547
+ end
548
+
549
+ defs.define_constant('Encoding::EUC_TW') do |klass|
550
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
551
+
552
+ end
553
+
554
+ defs.define_constant('Encoding::Emacs_Mule') do |klass|
555
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
556
+
557
+ end
558
+
559
+ defs.define_constant('Encoding::EncodingList') do |klass|
560
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
561
+
562
+ end
563
+
564
+ defs.define_constant('Encoding::EncodingMap') do |klass|
565
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
566
+
567
+ end
568
+
569
+ defs.define_constant('Encoding::EucCN') do |klass|
570
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
571
+
572
+ end
573
+
574
+ defs.define_constant('Encoding::EucJP') do |klass|
575
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
576
+
577
+ end
578
+
579
+ defs.define_constant('Encoding::EucJP_ms') do |klass|
580
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
581
+
582
+ end
583
+
584
+ defs.define_constant('Encoding::EucKR') do |klass|
585
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
586
+
587
+ end
588
+
589
+ defs.define_constant('Encoding::EucTW') do |klass|
590
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
591
+
592
+ end
593
+
594
+ defs.define_constant('Encoding::GB12345') do |klass|
595
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
596
+
597
+ end
598
+
599
+ defs.define_constant('Encoding::GB18030') do |klass|
600
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
601
+
602
+ end
603
+
604
+ defs.define_constant('Encoding::GB1988') do |klass|
605
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
606
+
607
+ end
608
+
609
+ defs.define_constant('Encoding::GB2312') do |klass|
610
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
611
+
612
+ end
613
+
614
+ defs.define_constant('Encoding::GBK') do |klass|
615
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
616
+
617
+ end
618
+
619
+ defs.define_constant('Encoding::IBM437') do |klass|
620
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
621
+
622
+ end
623
+
624
+ defs.define_constant('Encoding::IBM737') do |klass|
625
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
626
+
627
+ end
628
+
629
+ defs.define_constant('Encoding::IBM775') do |klass|
630
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
631
+
632
+ end
633
+
634
+ defs.define_constant('Encoding::IBM850') do |klass|
635
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
636
+
637
+ end
638
+
639
+ defs.define_constant('Encoding::IBM852') do |klass|
640
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
641
+
642
+ end
643
+
644
+ defs.define_constant('Encoding::IBM855') do |klass|
645
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
646
+
647
+ end
648
+
649
+ defs.define_constant('Encoding::IBM857') do |klass|
650
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
651
+
652
+ end
653
+
654
+ defs.define_constant('Encoding::IBM860') do |klass|
655
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
656
+
657
+ end
658
+
659
+ defs.define_constant('Encoding::IBM861') do |klass|
660
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
661
+
662
+ end
663
+
664
+ defs.define_constant('Encoding::IBM862') do |klass|
665
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
666
+
667
+ end
668
+
669
+ defs.define_constant('Encoding::IBM863') do |klass|
670
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
671
+
672
+ end
673
+
674
+ defs.define_constant('Encoding::IBM864') do |klass|
675
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
676
+
677
+ end
678
+
679
+ defs.define_constant('Encoding::IBM865') do |klass|
680
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
681
+
682
+ end
683
+
684
+ defs.define_constant('Encoding::IBM866') do |klass|
685
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
686
+
687
+ end
688
+
689
+ defs.define_constant('Encoding::IBM869') do |klass|
690
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
691
+
692
+ end
693
+
694
+ defs.define_constant('Encoding::ISO2022_JP') do |klass|
695
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
696
+
697
+ end
698
+
699
+ defs.define_constant('Encoding::ISO2022_JP2') do |klass|
700
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
701
+
702
+ end
703
+
704
+ defs.define_constant('Encoding::ISO8859_1') do |klass|
705
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
706
+
707
+ end
708
+
709
+ defs.define_constant('Encoding::ISO8859_10') do |klass|
710
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
711
+
712
+ end
713
+
714
+ defs.define_constant('Encoding::ISO8859_11') do |klass|
715
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
716
+
717
+ end
718
+
719
+ defs.define_constant('Encoding::ISO8859_13') do |klass|
720
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
721
+
722
+ end
723
+
724
+ defs.define_constant('Encoding::ISO8859_14') do |klass|
725
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
726
+
727
+ end
728
+
729
+ defs.define_constant('Encoding::ISO8859_15') do |klass|
730
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
731
+
732
+ end
733
+
734
+ defs.define_constant('Encoding::ISO8859_16') do |klass|
735
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
736
+
737
+ end
738
+
739
+ defs.define_constant('Encoding::ISO8859_2') do |klass|
740
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
741
+
742
+ end
743
+
744
+ defs.define_constant('Encoding::ISO8859_3') do |klass|
745
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
746
+
747
+ end
748
+
749
+ defs.define_constant('Encoding::ISO8859_4') do |klass|
750
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
751
+
752
+ end
753
+
754
+ defs.define_constant('Encoding::ISO8859_5') do |klass|
755
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
756
+
757
+ end
758
+
759
+ defs.define_constant('Encoding::ISO8859_6') do |klass|
760
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
761
+
762
+ end
763
+
764
+ defs.define_constant('Encoding::ISO8859_7') do |klass|
765
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
766
+
767
+ end
768
+
769
+ defs.define_constant('Encoding::ISO8859_8') do |klass|
770
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
771
+
772
+ end
773
+
774
+ defs.define_constant('Encoding::ISO8859_9') do |klass|
775
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
776
+
777
+ end
778
+
779
+ defs.define_constant('Encoding::ISO_2022_JP') do |klass|
780
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
781
+
782
+ end
783
+
784
+ defs.define_constant('Encoding::ISO_2022_JP_2') do |klass|
785
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
786
+
787
+ end
788
+
789
+ defs.define_constant('Encoding::ISO_2022_JP_KDDI') do |klass|
790
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
791
+
792
+ end
793
+
794
+ defs.define_constant('Encoding::ISO_8859_1') do |klass|
795
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
796
+
797
+ end
798
+
799
+ defs.define_constant('Encoding::ISO_8859_10') do |klass|
800
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
801
+
802
+ end
803
+
804
+ defs.define_constant('Encoding::ISO_8859_11') do |klass|
805
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
806
+
807
+ end
808
+
809
+ defs.define_constant('Encoding::ISO_8859_13') do |klass|
810
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
811
+
812
+ end
813
+
814
+ defs.define_constant('Encoding::ISO_8859_14') do |klass|
815
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
816
+
817
+ end
818
+
819
+ defs.define_constant('Encoding::ISO_8859_15') do |klass|
820
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
821
+
822
+ end
823
+
824
+ defs.define_constant('Encoding::ISO_8859_16') do |klass|
825
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
826
+
827
+ end
828
+
829
+ defs.define_constant('Encoding::ISO_8859_2') do |klass|
830
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
831
+
832
+ end
833
+
834
+ defs.define_constant('Encoding::ISO_8859_3') do |klass|
835
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
836
+
837
+ end
838
+
839
+ defs.define_constant('Encoding::ISO_8859_4') do |klass|
840
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
841
+
842
+ end
843
+
844
+ defs.define_constant('Encoding::ISO_8859_5') do |klass|
845
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
846
+
847
+ end
848
+
849
+ defs.define_constant('Encoding::ISO_8859_6') do |klass|
850
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
851
+
852
+ end
853
+
854
+ defs.define_constant('Encoding::ISO_8859_7') do |klass|
855
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
856
+
857
+ end
858
+
859
+ defs.define_constant('Encoding::ISO_8859_8') do |klass|
860
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
861
+
862
+ end
863
+
864
+ defs.define_constant('Encoding::ISO_8859_9') do |klass|
865
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
866
+
867
+ end
868
+
869
+ defs.define_constant('Encoding::InvalidByteSequenceError') do |klass|
870
+ klass.inherits(defs.constant_proxy('EncodingError', RubyLint.registry))
871
+
872
+ klass.define_instance_method('destination_encoding')
873
+
874
+ klass.define_instance_method('destination_encoding_name')
875
+
876
+ klass.define_instance_method('error_bytes')
877
+
878
+ klass.define_instance_method('incomplete_input?')
879
+
880
+ klass.define_instance_method('initialize') do |method|
881
+ method.define_optional_argument('message')
882
+
883
+ method.returns { |object| object.instance }
884
+ end
885
+
886
+ klass.define_instance_method('readagain_bytes')
887
+
888
+ klass.define_instance_method('source_encoding')
889
+
890
+ klass.define_instance_method('source_encoding_name')
891
+ end
892
+
893
+ defs.define_constant('Encoding::KOI8_R') do |klass|
894
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
895
+
896
+ end
897
+
898
+ defs.define_constant('Encoding::KOI8_U') do |klass|
899
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
900
+
901
+ end
902
+
903
+ defs.define_constant('Encoding::LocaleCharmap') do |klass|
904
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
905
+
906
+ end
907
+
908
+ defs.define_constant('Encoding::MACCENTEURO') do |klass|
909
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
910
+
911
+ end
912
+
913
+ defs.define_constant('Encoding::MACCROATIAN') do |klass|
914
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
915
+
916
+ end
917
+
918
+ defs.define_constant('Encoding::MACCYRILLIC') do |klass|
919
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
920
+
921
+ end
922
+
923
+ defs.define_constant('Encoding::MACGREEK') do |klass|
924
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
925
+
926
+ end
927
+
928
+ defs.define_constant('Encoding::MACICELAND') do |klass|
929
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
930
+
931
+ end
932
+
933
+ defs.define_constant('Encoding::MACJAPAN') do |klass|
934
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
935
+
936
+ end
937
+
938
+ defs.define_constant('Encoding::MACJAPANESE') do |klass|
939
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
940
+
941
+ end
942
+
943
+ defs.define_constant('Encoding::MACROMAN') do |klass|
944
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
945
+
946
+ end
947
+
948
+ defs.define_constant('Encoding::MACROMANIA') do |klass|
949
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
950
+
951
+ end
952
+
953
+ defs.define_constant('Encoding::MACTHAI') do |klass|
954
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
955
+
956
+ end
957
+
958
+ defs.define_constant('Encoding::MACTURKISH') do |klass|
959
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
960
+
961
+ end
962
+
963
+ defs.define_constant('Encoding::MACUKRAINE') do |klass|
964
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
965
+
966
+ end
967
+
968
+ defs.define_constant('Encoding::MacCentEuro') do |klass|
969
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
970
+
971
+ end
972
+
973
+ defs.define_constant('Encoding::MacCroatian') do |klass|
974
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
975
+
976
+ end
977
+
978
+ defs.define_constant('Encoding::MacCyrillic') do |klass|
979
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
980
+
981
+ end
982
+
983
+ defs.define_constant('Encoding::MacGreek') do |klass|
984
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
985
+
986
+ end
987
+
988
+ defs.define_constant('Encoding::MacIceland') do |klass|
989
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
990
+
991
+ end
992
+
993
+ defs.define_constant('Encoding::MacJapan') do |klass|
994
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
995
+
996
+ end
997
+
998
+ defs.define_constant('Encoding::MacJapanese') do |klass|
999
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1000
+
1001
+ end
1002
+
1003
+ defs.define_constant('Encoding::MacRoman') do |klass|
1004
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1005
+
1006
+ end
1007
+
1008
+ defs.define_constant('Encoding::MacRomania') do |klass|
1009
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1010
+
1011
+ end
1012
+
1013
+ defs.define_constant('Encoding::MacThai') do |klass|
1014
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1015
+
1016
+ end
1017
+
1018
+ defs.define_constant('Encoding::MacTurkish') do |klass|
1019
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1020
+
1021
+ end
1022
+
1023
+ defs.define_constant('Encoding::MacUkraine') do |klass|
1024
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1025
+
1026
+ end
1027
+
1028
+ defs.define_constant('Encoding::PCK') do |klass|
1029
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1030
+
1031
+ end
1032
+
1033
+ defs.define_constant('Encoding::SHIFT_JIS') do |klass|
1034
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1035
+
1036
+ end
1192
1037
 
1193
- ##
1194
- # Constant: Encoding::ISO_8859_13
1195
- # Created: 2013-04-09 14:56:18 +0200
1196
- # Platform: rbx 2.0.0.rc1
1197
- #
1198
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_13') do |klass|
1199
- end
1038
+ defs.define_constant('Encoding::SJIS') do |klass|
1039
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1200
1040
 
1201
- ##
1202
- # Constant: Encoding::ISO_8859_14
1203
- # Created: 2013-04-09 14:56:18 +0200
1204
- # Platform: rbx 2.0.0.rc1
1205
- #
1206
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_14') do |klass|
1207
- end
1041
+ end
1208
1042
 
1209
- ##
1210
- # Constant: Encoding::ISO_8859_15
1211
- # Created: 2013-04-09 14:56:18 +0200
1212
- # Platform: rbx 2.0.0.rc1
1213
- #
1214
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_15') do |klass|
1215
- end
1043
+ defs.define_constant('Encoding::SJIS_DOCOMO') do |klass|
1044
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1216
1045
 
1217
- ##
1218
- # Constant: Encoding::ISO_8859_16
1219
- # Created: 2013-04-09 14:56:18 +0200
1220
- # Platform: rbx 2.0.0.rc1
1221
- #
1222
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_16') do |klass|
1223
- end
1046
+ end
1224
1047
 
1225
- ##
1226
- # Constant: Encoding::ISO_8859_2
1227
- # Created: 2013-04-09 14:56:18 +0200
1228
- # Platform: rbx 2.0.0.rc1
1229
- #
1230
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_2') do |klass|
1231
- end
1048
+ defs.define_constant('Encoding::SJIS_DoCoMo') do |klass|
1049
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1232
1050
 
1233
- ##
1234
- # Constant: Encoding::ISO_8859_3
1235
- # Created: 2013-04-09 14:56:18 +0200
1236
- # Platform: rbx 2.0.0.rc1
1237
- #
1238
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_3') do |klass|
1239
- end
1051
+ end
1240
1052
 
1241
- ##
1242
- # Constant: Encoding::ISO_8859_4
1243
- # Created: 2013-04-09 14:56:18 +0200
1244
- # Platform: rbx 2.0.0.rc1
1245
- #
1246
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_4') do |klass|
1247
- end
1053
+ defs.define_constant('Encoding::SJIS_KDDI') do |klass|
1054
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1248
1055
 
1249
- ##
1250
- # Constant: Encoding::ISO_8859_5
1251
- # Created: 2013-04-09 14:56:18 +0200
1252
- # Platform: rbx 2.0.0.rc1
1253
- #
1254
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_5') do |klass|
1255
- end
1056
+ end
1256
1057
 
1257
- ##
1258
- # Constant: Encoding::ISO_8859_6
1259
- # Created: 2013-04-09 14:56:18 +0200
1260
- # Platform: rbx 2.0.0.rc1
1261
- #
1262
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_6') do |klass|
1263
- end
1058
+ defs.define_constant('Encoding::SJIS_SOFTBANK') do |klass|
1059
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1264
1060
 
1265
- ##
1266
- # Constant: Encoding::ISO_8859_7
1267
- # Created: 2013-04-09 14:56:18 +0200
1268
- # Platform: rbx 2.0.0.rc1
1269
- #
1270
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_7') do |klass|
1271
- end
1061
+ end
1272
1062
 
1273
- ##
1274
- # Constant: Encoding::ISO_8859_8
1275
- # Created: 2013-04-09 14:56:18 +0200
1276
- # Platform: rbx 2.0.0.rc1
1277
- #
1278
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_8') do |klass|
1279
- end
1063
+ defs.define_constant('Encoding::SJIS_SoftBank') do |klass|
1064
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1280
1065
 
1281
- ##
1282
- # Constant: Encoding::ISO_8859_9
1283
- # Created: 2013-04-09 14:56:18 +0200
1284
- # Platform: rbx 2.0.0.rc1
1285
- #
1286
- RubyLint::GlobalScope.definitions.define_constant('Encoding::ISO_8859_9') do |klass|
1287
- end
1066
+ end
1288
1067
 
1289
- ##
1290
- # Constant: Encoding::InvalidByteSequenceError
1291
- # Created: 2013-04-09 14:56:18 +0200
1292
- # Platform: rbx 2.0.0.rc1
1293
- #
1294
- RubyLint::GlobalScope.definitions.define_constant('Encoding::InvalidByteSequenceError') do |klass|
1295
- klass.inherits(RubyLint::GlobalScope.constant_proxy('EncodingError'))
1068
+ defs.define_constant('Encoding::STATELESS_ISO_2022_JP') do |klass|
1069
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1070
+
1071
+ end
1296
1072
 
1297
- klass.define_method('__class_init__')
1073
+ defs.define_constant('Encoding::STATELESS_ISO_2022_JP_KDDI') do |klass|
1074
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1298
1075
 
1299
- klass.define_instance_method('destination_encoding')
1076
+ end
1300
1077
 
1301
- klass.define_instance_method('destination_encoding_name')
1078
+ defs.define_constant('Encoding::Shift_JIS') do |klass|
1079
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1302
1080
 
1303
- klass.define_instance_method('error_bytes')
1081
+ end
1304
1082
 
1305
- klass.define_instance_method('incomplete_input?')
1083
+ defs.define_constant('Encoding::Stateless_ISO_2022_JP') do |klass|
1084
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1306
1085
 
1307
- klass.define_instance_method('initialize') do |method|
1308
- method.define_optional_argument('message')
1309
1086
  end
1310
1087
 
1311
- klass.define_instance_method('readagain_bytes')
1088
+ defs.define_constant('Encoding::Stateless_ISO_2022_JP_KDDI') do |klass|
1089
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1312
1090
 
1313
- klass.define_instance_method('source_encoding')
1091
+ end
1314
1092
 
1315
- klass.define_instance_method('source_encoding_name')
1316
- end
1093
+ defs.define_constant('Encoding::TIS_620') do |klass|
1094
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1317
1095
 
1318
- ##
1319
- # Constant: Encoding::KOI8_R
1320
- # Created: 2013-04-09 14:56:18 +0200
1321
- # Platform: rbx 2.0.0.rc1
1322
- #
1323
- RubyLint::GlobalScope.definitions.define_constant('Encoding::KOI8_R') do |klass|
1324
- end
1096
+ end
1325
1097
 
1326
- ##
1327
- # Constant: Encoding::KOI8_U
1328
- # Created: 2013-04-09 14:56:18 +0200
1329
- # Platform: rbx 2.0.0.rc1
1330
- #
1331
- RubyLint::GlobalScope.definitions.define_constant('Encoding::KOI8_U') do |klass|
1332
- end
1098
+ defs.define_constant('Encoding::Transcoding') do |klass|
1099
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1333
1100
 
1334
- ##
1335
- # Constant: Encoding::LocaleCharmap
1336
- # Created: 2013-04-09 14:56:18 +0200
1337
- # Platform: rbx 2.0.0.rc1
1338
- #
1339
- RubyLint::GlobalScope.definitions.define_constant('Encoding::LocaleCharmap') do |klass|
1340
- end
1101
+ klass.define_instance_method('inspect')
1341
1102
 
1342
- ##
1343
- # Constant: Encoding::MACCENTEURO
1344
- # Created: 2013-04-09 14:56:18 +0200
1345
- # Platform: rbx 2.0.0.rc1
1346
- #
1347
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACCENTEURO') do |klass|
1348
- end
1103
+ klass.define_instance_method('source')
1349
1104
 
1350
- ##
1351
- # Constant: Encoding::MACCROATIAN
1352
- # Created: 2013-04-09 14:56:18 +0200
1353
- # Platform: rbx 2.0.0.rc1
1354
- #
1355
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACCROATIAN') do |klass|
1356
- end
1105
+ klass.define_instance_method('source=')
1357
1106
 
1358
- ##
1359
- # Constant: Encoding::MACCYRILLIC
1360
- # Created: 2013-04-09 14:56:18 +0200
1361
- # Platform: rbx 2.0.0.rc1
1362
- #
1363
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACCYRILLIC') do |klass|
1364
- end
1107
+ klass.define_instance_method('target')
1365
1108
 
1366
- ##
1367
- # Constant: Encoding::MACGREEK
1368
- # Created: 2013-04-09 14:56:18 +0200
1369
- # Platform: rbx 2.0.0.rc1
1370
- #
1371
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACGREEK') do |klass|
1372
- end
1109
+ klass.define_instance_method('target=')
1110
+ end
1373
1111
 
1374
- ##
1375
- # Constant: Encoding::MACICELAND
1376
- # Created: 2013-04-09 14:56:18 +0200
1377
- # Platform: rbx 2.0.0.rc1
1378
- #
1379
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACICELAND') do |klass|
1380
- end
1112
+ defs.define_constant('Encoding::TranscodingMap') do |klass|
1113
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1381
1114
 
1382
- ##
1383
- # Constant: Encoding::MACJAPAN
1384
- # Created: 2013-04-09 14:56:18 +0200
1385
- # Platform: rbx 2.0.0.rc1
1386
- #
1387
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACJAPAN') do |klass|
1388
- end
1115
+ end
1389
1116
 
1390
- ##
1391
- # Constant: Encoding::MACJAPANESE
1392
- # Created: 2013-04-09 14:56:18 +0200
1393
- # Platform: rbx 2.0.0.rc1
1394
- #
1395
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACJAPANESE') do |klass|
1396
- end
1117
+ defs.define_constant('Encoding::UCS_2BE') do |klass|
1118
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1397
1119
 
1398
- ##
1399
- # Constant: Encoding::MACROMAN
1400
- # Created: 2013-04-09 14:56:18 +0200
1401
- # Platform: rbx 2.0.0.rc1
1402
- #
1403
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACROMAN') do |klass|
1404
- end
1120
+ end
1405
1121
 
1406
- ##
1407
- # Constant: Encoding::MACROMANIA
1408
- # Created: 2013-04-09 14:56:18 +0200
1409
- # Platform: rbx 2.0.0.rc1
1410
- #
1411
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACROMANIA') do |klass|
1412
- end
1122
+ defs.define_constant('Encoding::UCS_4BE') do |klass|
1123
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1413
1124
 
1414
- ##
1415
- # Constant: Encoding::MACTHAI
1416
- # Created: 2013-04-09 14:56:18 +0200
1417
- # Platform: rbx 2.0.0.rc1
1418
- #
1419
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACTHAI') do |klass|
1420
- end
1125
+ end
1421
1126
 
1422
- ##
1423
- # Constant: Encoding::MACTURKISH
1424
- # Created: 2013-04-09 14:56:18 +0200
1425
- # Platform: rbx 2.0.0.rc1
1426
- #
1427
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACTURKISH') do |klass|
1428
- end
1127
+ defs.define_constant('Encoding::UCS_4LE') do |klass|
1128
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1429
1129
 
1430
- ##
1431
- # Constant: Encoding::MACUKRAINE
1432
- # Created: 2013-04-09 14:56:18 +0200
1433
- # Platform: rbx 2.0.0.rc1
1434
- #
1435
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MACUKRAINE') do |klass|
1436
- end
1130
+ end
1437
1131
 
1438
- ##
1439
- # Constant: Encoding::MacCentEuro
1440
- # Created: 2013-04-09 14:56:18 +0200
1441
- # Platform: rbx 2.0.0.rc1
1442
- #
1443
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacCentEuro') do |klass|
1444
- end
1132
+ defs.define_constant('Encoding::US_ASCII') do |klass|
1133
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1445
1134
 
1446
- ##
1447
- # Constant: Encoding::MacCroatian
1448
- # Created: 2013-04-09 14:56:18 +0200
1449
- # Platform: rbx 2.0.0.rc1
1450
- #
1451
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacCroatian') do |klass|
1452
- end
1135
+ end
1453
1136
 
1454
- ##
1455
- # Constant: Encoding::MacCyrillic
1456
- # Created: 2013-04-09 14:56:18 +0200
1457
- # Platform: rbx 2.0.0.rc1
1458
- #
1459
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacCyrillic') do |klass|
1460
- end
1137
+ defs.define_constant('Encoding::UTF8_DOCOMO') do |klass|
1138
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1461
1139
 
1462
- ##
1463
- # Constant: Encoding::MacGreek
1464
- # Created: 2013-04-09 14:56:18 +0200
1465
- # Platform: rbx 2.0.0.rc1
1466
- #
1467
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacGreek') do |klass|
1468
- end
1140
+ end
1469
1141
 
1470
- ##
1471
- # Constant: Encoding::MacIceland
1472
- # Created: 2013-04-09 14:56:18 +0200
1473
- # Platform: rbx 2.0.0.rc1
1474
- #
1475
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacIceland') do |klass|
1476
- end
1142
+ defs.define_constant('Encoding::UTF8_DoCoMo') do |klass|
1143
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1477
1144
 
1478
- ##
1479
- # Constant: Encoding::MacJapan
1480
- # Created: 2013-04-09 14:56:18 +0200
1481
- # Platform: rbx 2.0.0.rc1
1482
- #
1483
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacJapan') do |klass|
1484
- end
1145
+ end
1485
1146
 
1486
- ##
1487
- # Constant: Encoding::MacJapanese
1488
- # Created: 2013-04-09 14:56:18 +0200
1489
- # Platform: rbx 2.0.0.rc1
1490
- #
1491
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacJapanese') do |klass|
1492
- end
1147
+ defs.define_constant('Encoding::UTF8_KDDI') do |klass|
1148
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1493
1149
 
1494
- ##
1495
- # Constant: Encoding::MacRoman
1496
- # Created: 2013-04-09 14:56:18 +0200
1497
- # Platform: rbx 2.0.0.rc1
1498
- #
1499
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacRoman') do |klass|
1500
- end
1150
+ end
1501
1151
 
1502
- ##
1503
- # Constant: Encoding::MacRomania
1504
- # Created: 2013-04-09 14:56:18 +0200
1505
- # Platform: rbx 2.0.0.rc1
1506
- #
1507
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacRomania') do |klass|
1508
- end
1152
+ defs.define_constant('Encoding::UTF8_MAC') do |klass|
1153
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1509
1154
 
1510
- ##
1511
- # Constant: Encoding::MacThai
1512
- # Created: 2013-04-09 14:56:18 +0200
1513
- # Platform: rbx 2.0.0.rc1
1514
- #
1515
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacThai') do |klass|
1516
- end
1155
+ end
1517
1156
 
1518
- ##
1519
- # Constant: Encoding::MacTurkish
1520
- # Created: 2013-04-09 14:56:18 +0200
1521
- # Platform: rbx 2.0.0.rc1
1522
- #
1523
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacTurkish') do |klass|
1524
- end
1157
+ defs.define_constant('Encoding::UTF8_SOFTBANK') do |klass|
1158
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1525
1159
 
1526
- ##
1527
- # Constant: Encoding::MacUkraine
1528
- # Created: 2013-04-09 14:56:18 +0200
1529
- # Platform: rbx 2.0.0.rc1
1530
- #
1531
- RubyLint::GlobalScope.definitions.define_constant('Encoding::MacUkraine') do |klass|
1532
- end
1160
+ end
1533
1161
 
1534
- ##
1535
- # Constant: Encoding::PCK
1536
- # Created: 2013-04-09 14:56:18 +0200
1537
- # Platform: rbx 2.0.0.rc1
1538
- #
1539
- RubyLint::GlobalScope.definitions.define_constant('Encoding::PCK') do |klass|
1540
- end
1162
+ defs.define_constant('Encoding::UTF8_SoftBank') do |klass|
1163
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1541
1164
 
1542
- ##
1543
- # Constant: Encoding::SHIFT_JIS
1544
- # Created: 2013-04-09 14:56:18 +0200
1545
- # Platform: rbx 2.0.0.rc1
1546
- #
1547
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SHIFT_JIS') do |klass|
1548
- end
1165
+ end
1549
1166
 
1550
- ##
1551
- # Constant: Encoding::SJIS
1552
- # Created: 2013-04-09 14:56:18 +0200
1553
- # Platform: rbx 2.0.0.rc1
1554
- #
1555
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS') do |klass|
1556
- end
1167
+ defs.define_constant('Encoding::UTF_16') do |klass|
1168
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1557
1169
 
1558
- ##
1559
- # Constant: Encoding::SJIS_DOCOMO
1560
- # Created: 2013-04-09 14:56:18 +0200
1561
- # Platform: rbx 2.0.0.rc1
1562
- #
1563
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS_DOCOMO') do |klass|
1564
- end
1170
+ end
1565
1171
 
1566
- ##
1567
- # Constant: Encoding::SJIS_DoCoMo
1568
- # Created: 2013-04-09 14:56:18 +0200
1569
- # Platform: rbx 2.0.0.rc1
1570
- #
1571
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS_DoCoMo') do |klass|
1572
- end
1172
+ defs.define_constant('Encoding::UTF_16BE') do |klass|
1173
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1573
1174
 
1574
- ##
1575
- # Constant: Encoding::SJIS_KDDI
1576
- # Created: 2013-04-09 14:56:18 +0200
1577
- # Platform: rbx 2.0.0.rc1
1578
- #
1579
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS_KDDI') do |klass|
1580
- end
1175
+ end
1581
1176
 
1582
- ##
1583
- # Constant: Encoding::SJIS_SOFTBANK
1584
- # Created: 2013-04-09 14:56:18 +0200
1585
- # Platform: rbx 2.0.0.rc1
1586
- #
1587
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS_SOFTBANK') do |klass|
1588
- end
1177
+ defs.define_constant('Encoding::UTF_16LE') do |klass|
1178
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1589
1179
 
1590
- ##
1591
- # Constant: Encoding::SJIS_SoftBank
1592
- # Created: 2013-04-09 14:56:18 +0200
1593
- # Platform: rbx 2.0.0.rc1
1594
- #
1595
- RubyLint::GlobalScope.definitions.define_constant('Encoding::SJIS_SoftBank') do |klass|
1596
- end
1180
+ end
1597
1181
 
1598
- ##
1599
- # Constant: Encoding::STATELESS_ISO_2022_JP
1600
- # Created: 2013-04-09 14:56:18 +0200
1601
- # Platform: rbx 2.0.0.rc1
1602
- #
1603
- RubyLint::GlobalScope.definitions.define_constant('Encoding::STATELESS_ISO_2022_JP') do |klass|
1604
- end
1182
+ defs.define_constant('Encoding::UTF_32') do |klass|
1183
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1605
1184
 
1606
- ##
1607
- # Constant: Encoding::STATELESS_ISO_2022_JP_KDDI
1608
- # Created: 2013-04-09 14:56:18 +0200
1609
- # Platform: rbx 2.0.0.rc1
1610
- #
1611
- RubyLint::GlobalScope.definitions.define_constant('Encoding::STATELESS_ISO_2022_JP_KDDI') do |klass|
1612
- end
1185
+ end
1613
1186
 
1614
- ##
1615
- # Constant: Encoding::Shift_JIS
1616
- # Created: 2013-04-09 14:56:18 +0200
1617
- # Platform: rbx 2.0.0.rc1
1618
- #
1619
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Shift_JIS') do |klass|
1620
- end
1187
+ defs.define_constant('Encoding::UTF_32BE') do |klass|
1188
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1621
1189
 
1622
- ##
1623
- # Constant: Encoding::Stateless_ISO_2022_JP
1624
- # Created: 2013-04-09 14:56:18 +0200
1625
- # Platform: rbx 2.0.0.rc1
1626
- #
1627
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Stateless_ISO_2022_JP') do |klass|
1628
- end
1190
+ end
1629
1191
 
1630
- ##
1631
- # Constant: Encoding::Stateless_ISO_2022_JP_KDDI
1632
- # Created: 2013-04-09 14:56:18 +0200
1633
- # Platform: rbx 2.0.0.rc1
1634
- #
1635
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Stateless_ISO_2022_JP_KDDI') do |klass|
1636
- end
1192
+ defs.define_constant('Encoding::UTF_32LE') do |klass|
1193
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1637
1194
 
1638
- ##
1639
- # Constant: Encoding::TIS_620
1640
- # Created: 2013-04-09 14:56:18 +0200
1641
- # Platform: rbx 2.0.0.rc1
1642
- #
1643
- RubyLint::GlobalScope.definitions.define_constant('Encoding::TIS_620') do |klass|
1644
- end
1195
+ end
1645
1196
 
1646
- ##
1647
- # Constant: Encoding::Transcoding
1648
- # Created: 2013-04-09 14:56:18 +0200
1649
- # Platform: rbx 2.0.0.rc1
1650
- #
1651
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Transcoding') do |klass|
1652
- klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
1197
+ defs.define_constant('Encoding::UTF_7') do |klass|
1198
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1653
1199
 
1654
- klass.define_method('__class_init__')
1200
+ end
1655
1201
 
1656
- klass.define_instance_method('inspect')
1202
+ defs.define_constant('Encoding::UTF_8') do |klass|
1203
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1657
1204
 
1658
- klass.define_instance_method('source')
1205
+ end
1659
1206
 
1660
- klass.define_instance_method('source=')
1207
+ defs.define_constant('Encoding::UTF_8_HFS') do |klass|
1208
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1661
1209
 
1662
- klass.define_instance_method('target')
1210
+ end
1663
1211
 
1664
- klass.define_instance_method('target=')
1665
- end
1212
+ defs.define_constant('Encoding::UTF_8_MAC') do |klass|
1213
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1666
1214
 
1667
- ##
1668
- # Constant: Encoding::TranscodingMap
1669
- # Created: 2013-04-09 14:56:18 +0200
1670
- # Platform: rbx 2.0.0.rc1
1671
- #
1672
- RubyLint::GlobalScope.definitions.define_constant('Encoding::TranscodingMap') do |klass|
1673
- end
1215
+ end
1674
1216
 
1675
- ##
1676
- # Constant: Encoding::UCS_2BE
1677
- # Created: 2013-04-09 14:56:18 +0200
1678
- # Platform: rbx 2.0.0.rc1
1679
- #
1680
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UCS_2BE') do |klass|
1681
- end
1217
+ defs.define_constant('Encoding::UndefinedConversionError') do |klass|
1218
+ klass.inherits(defs.constant_proxy('EncodingError', RubyLint.registry))
1682
1219
 
1683
- ##
1684
- # Constant: Encoding::UCS_4BE
1685
- # Created: 2013-04-09 14:56:18 +0200
1686
- # Platform: rbx 2.0.0.rc1
1687
- #
1688
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UCS_4BE') do |klass|
1689
- end
1220
+ klass.define_instance_method('destination_encoding')
1690
1221
 
1691
- ##
1692
- # Constant: Encoding::UCS_4LE
1693
- # Created: 2013-04-09 14:56:18 +0200
1694
- # Platform: rbx 2.0.0.rc1
1695
- #
1696
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UCS_4LE') do |klass|
1697
- end
1222
+ klass.define_instance_method('destination_encoding_name')
1698
1223
 
1699
- ##
1700
- # Constant: Encoding::US_ASCII
1701
- # Created: 2013-04-09 14:56:18 +0200
1702
- # Platform: rbx 2.0.0.rc1
1703
- #
1704
- RubyLint::GlobalScope.definitions.define_constant('Encoding::US_ASCII') do |klass|
1705
- end
1224
+ klass.define_instance_method('error_char')
1706
1225
 
1707
- ##
1708
- # Constant: Encoding::UTF8_DOCOMO
1709
- # Created: 2013-04-09 14:56:18 +0200
1710
- # Platform: rbx 2.0.0.rc1
1711
- #
1712
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_DOCOMO') do |klass|
1713
- end
1226
+ klass.define_instance_method('source_encoding')
1714
1227
 
1715
- ##
1716
- # Constant: Encoding::UTF8_DoCoMo
1717
- # Created: 2013-04-09 14:56:18 +0200
1718
- # Platform: rbx 2.0.0.rc1
1719
- #
1720
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_DoCoMo') do |klass|
1721
- end
1228
+ klass.define_instance_method('source_encoding_name')
1229
+ end
1722
1230
 
1723
- ##
1724
- # Constant: Encoding::UTF8_KDDI
1725
- # Created: 2013-04-09 14:56:18 +0200
1726
- # Platform: rbx 2.0.0.rc1
1727
- #
1728
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_KDDI') do |klass|
1729
- end
1231
+ defs.define_constant('Encoding::WINDOWS_1250') do |klass|
1232
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1730
1233
 
1731
- ##
1732
- # Constant: Encoding::UTF8_MAC
1733
- # Created: 2013-04-09 14:56:18 +0200
1734
- # Platform: rbx 2.0.0.rc1
1735
- #
1736
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_MAC') do |klass|
1737
- end
1234
+ end
1738
1235
 
1739
- ##
1740
- # Constant: Encoding::UTF8_SOFTBANK
1741
- # Created: 2013-04-09 14:56:18 +0200
1742
- # Platform: rbx 2.0.0.rc1
1743
- #
1744
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_SOFTBANK') do |klass|
1745
- end
1236
+ defs.define_constant('Encoding::WINDOWS_1251') do |klass|
1237
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1746
1238
 
1747
- ##
1748
- # Constant: Encoding::UTF8_SoftBank
1749
- # Created: 2013-04-09 14:56:18 +0200
1750
- # Platform: rbx 2.0.0.rc1
1751
- #
1752
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF8_SoftBank') do |klass|
1753
- end
1239
+ end
1754
1240
 
1755
- ##
1756
- # Constant: Encoding::UTF_16
1757
- # Created: 2013-04-09 14:56:18 +0200
1758
- # Platform: rbx 2.0.0.rc1
1759
- #
1760
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_16') do |klass|
1761
- end
1241
+ defs.define_constant('Encoding::WINDOWS_1252') do |klass|
1242
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1762
1243
 
1763
- ##
1764
- # Constant: Encoding::UTF_16BE
1765
- # Created: 2013-04-09 14:56:18 +0200
1766
- # Platform: rbx 2.0.0.rc1
1767
- #
1768
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_16BE') do |klass|
1769
- end
1244
+ end
1770
1245
 
1771
- ##
1772
- # Constant: Encoding::UTF_16LE
1773
- # Created: 2013-04-09 14:56:18 +0200
1774
- # Platform: rbx 2.0.0.rc1
1775
- #
1776
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_16LE') do |klass|
1777
- end
1246
+ defs.define_constant('Encoding::WINDOWS_1253') do |klass|
1247
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1778
1248
 
1779
- ##
1780
- # Constant: Encoding::UTF_32
1781
- # Created: 2013-04-09 14:56:18 +0200
1782
- # Platform: rbx 2.0.0.rc1
1783
- #
1784
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_32') do |klass|
1785
- end
1249
+ end
1786
1250
 
1787
- ##
1788
- # Constant: Encoding::UTF_32BE
1789
- # Created: 2013-04-09 14:56:18 +0200
1790
- # Platform: rbx 2.0.0.rc1
1791
- #
1792
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_32BE') do |klass|
1793
- end
1251
+ defs.define_constant('Encoding::WINDOWS_1254') do |klass|
1252
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1794
1253
 
1795
- ##
1796
- # Constant: Encoding::UTF_32LE
1797
- # Created: 2013-04-09 14:56:18 +0200
1798
- # Platform: rbx 2.0.0.rc1
1799
- #
1800
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_32LE') do |klass|
1801
- end
1254
+ end
1802
1255
 
1803
- ##
1804
- # Constant: Encoding::UTF_7
1805
- # Created: 2013-04-09 14:56:18 +0200
1806
- # Platform: rbx 2.0.0.rc1
1807
- #
1808
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_7') do |klass|
1809
- end
1256
+ defs.define_constant('Encoding::WINDOWS_1255') do |klass|
1257
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1810
1258
 
1811
- ##
1812
- # Constant: Encoding::UTF_8
1813
- # Created: 2013-04-09 14:56:18 +0200
1814
- # Platform: rbx 2.0.0.rc1
1815
- #
1816
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_8') do |klass|
1817
- end
1259
+ end
1818
1260
 
1819
- ##
1820
- # Constant: Encoding::UTF_8_HFS
1821
- # Created: 2013-04-09 14:56:18 +0200
1822
- # Platform: rbx 2.0.0.rc1
1823
- #
1824
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_8_HFS') do |klass|
1825
- end
1261
+ defs.define_constant('Encoding::WINDOWS_1256') do |klass|
1262
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1826
1263
 
1827
- ##
1828
- # Constant: Encoding::UTF_8_MAC
1829
- # Created: 2013-04-09 14:56:18 +0200
1830
- # Platform: rbx 2.0.0.rc1
1831
- #
1832
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UTF_8_MAC') do |klass|
1833
- end
1264
+ end
1834
1265
 
1835
- ##
1836
- # Constant: Encoding::UndefinedConversionError
1837
- # Created: 2013-04-09 14:56:18 +0200
1838
- # Platform: rbx 2.0.0.rc1
1839
- #
1840
- RubyLint::GlobalScope.definitions.define_constant('Encoding::UndefinedConversionError') do |klass|
1841
- klass.inherits(RubyLint::GlobalScope.constant_proxy('EncodingError'))
1266
+ defs.define_constant('Encoding::WINDOWS_1257') do |klass|
1267
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1842
1268
 
1843
- klass.define_method('__class_init__')
1269
+ end
1844
1270
 
1845
- klass.define_instance_method('destination_encoding')
1271
+ defs.define_constant('Encoding::WINDOWS_1258') do |klass|
1272
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1846
1273
 
1847
- klass.define_instance_method('destination_encoding_name')
1274
+ end
1848
1275
 
1849
- klass.define_instance_method('error_char')
1276
+ defs.define_constant('Encoding::WINDOWS_31J') do |klass|
1277
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1850
1278
 
1851
- klass.define_instance_method('source_encoding')
1279
+ end
1852
1280
 
1853
- klass.define_instance_method('source_encoding_name')
1854
- end
1281
+ defs.define_constant('Encoding::WINDOWS_874') do |klass|
1282
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1855
1283
 
1856
- ##
1857
- # Constant: Encoding::WINDOWS_1250
1858
- # Created: 2013-04-09 14:56:18 +0200
1859
- # Platform: rbx 2.0.0.rc1
1860
- #
1861
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1250') do |klass|
1862
- end
1284
+ end
1863
1285
 
1864
- ##
1865
- # Constant: Encoding::WINDOWS_1251
1866
- # Created: 2013-04-09 14:56:18 +0200
1867
- # Platform: rbx 2.0.0.rc1
1868
- #
1869
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1251') do |klass|
1870
- end
1286
+ defs.define_constant('Encoding::Windows_1250') do |klass|
1287
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1871
1288
 
1872
- ##
1873
- # Constant: Encoding::WINDOWS_1252
1874
- # Created: 2013-04-09 14:56:18 +0200
1875
- # Platform: rbx 2.0.0.rc1
1876
- #
1877
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1252') do |klass|
1878
- end
1289
+ end
1879
1290
 
1880
- ##
1881
- # Constant: Encoding::WINDOWS_1253
1882
- # Created: 2013-04-09 14:56:18 +0200
1883
- # Platform: rbx 2.0.0.rc1
1884
- #
1885
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1253') do |klass|
1886
- end
1291
+ defs.define_constant('Encoding::Windows_1251') do |klass|
1292
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1887
1293
 
1888
- ##
1889
- # Constant: Encoding::WINDOWS_1254
1890
- # Created: 2013-04-09 14:56:18 +0200
1891
- # Platform: rbx 2.0.0.rc1
1892
- #
1893
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1254') do |klass|
1894
- end
1294
+ end
1895
1295
 
1896
- ##
1897
- # Constant: Encoding::WINDOWS_1255
1898
- # Created: 2013-04-09 14:56:18 +0200
1899
- # Platform: rbx 2.0.0.rc1
1900
- #
1901
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1255') do |klass|
1902
- end
1296
+ defs.define_constant('Encoding::Windows_1252') do |klass|
1297
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1903
1298
 
1904
- ##
1905
- # Constant: Encoding::WINDOWS_1256
1906
- # Created: 2013-04-09 14:56:18 +0200
1907
- # Platform: rbx 2.0.0.rc1
1908
- #
1909
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1256') do |klass|
1910
- end
1299
+ end
1911
1300
 
1912
- ##
1913
- # Constant: Encoding::WINDOWS_1257
1914
- # Created: 2013-04-09 14:56:18 +0200
1915
- # Platform: rbx 2.0.0.rc1
1916
- #
1917
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1257') do |klass|
1918
- end
1301
+ defs.define_constant('Encoding::Windows_1253') do |klass|
1302
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1919
1303
 
1920
- ##
1921
- # Constant: Encoding::WINDOWS_1258
1922
- # Created: 2013-04-09 14:56:18 +0200
1923
- # Platform: rbx 2.0.0.rc1
1924
- #
1925
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_1258') do |klass|
1926
- end
1304
+ end
1927
1305
 
1928
- ##
1929
- # Constant: Encoding::WINDOWS_31J
1930
- # Created: 2013-04-09 14:56:18 +0200
1931
- # Platform: rbx 2.0.0.rc1
1932
- #
1933
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_31J') do |klass|
1934
- end
1306
+ defs.define_constant('Encoding::Windows_1254') do |klass|
1307
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1935
1308
 
1936
- ##
1937
- # Constant: Encoding::WINDOWS_874
1938
- # Created: 2013-04-09 14:56:18 +0200
1939
- # Platform: rbx 2.0.0.rc1
1940
- #
1941
- RubyLint::GlobalScope.definitions.define_constant('Encoding::WINDOWS_874') do |klass|
1942
- end
1309
+ end
1943
1310
 
1944
- ##
1945
- # Constant: Encoding::Windows_1250
1946
- # Created: 2013-04-09 14:56:18 +0200
1947
- # Platform: rbx 2.0.0.rc1
1948
- #
1949
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1250') do |klass|
1950
- end
1311
+ defs.define_constant('Encoding::Windows_1255') do |klass|
1312
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1951
1313
 
1952
- ##
1953
- # Constant: Encoding::Windows_1251
1954
- # Created: 2013-04-09 14:56:18 +0200
1955
- # Platform: rbx 2.0.0.rc1
1956
- #
1957
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1251') do |klass|
1958
- end
1314
+ end
1959
1315
 
1960
- ##
1961
- # Constant: Encoding::Windows_1252
1962
- # Created: 2013-04-09 14:56:18 +0200
1963
- # Platform: rbx 2.0.0.rc1
1964
- #
1965
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1252') do |klass|
1966
- end
1316
+ defs.define_constant('Encoding::Windows_1256') do |klass|
1317
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1967
1318
 
1968
- ##
1969
- # Constant: Encoding::Windows_1253
1970
- # Created: 2013-04-09 14:56:18 +0200
1971
- # Platform: rbx 2.0.0.rc1
1972
- #
1973
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1253') do |klass|
1974
- end
1319
+ end
1975
1320
 
1976
- ##
1977
- # Constant: Encoding::Windows_1254
1978
- # Created: 2013-04-09 14:56:18 +0200
1979
- # Platform: rbx 2.0.0.rc1
1980
- #
1981
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1254') do |klass|
1982
- end
1321
+ defs.define_constant('Encoding::Windows_1257') do |klass|
1322
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1983
1323
 
1984
- ##
1985
- # Constant: Encoding::Windows_1255
1986
- # Created: 2013-04-09 14:56:18 +0200
1987
- # Platform: rbx 2.0.0.rc1
1988
- #
1989
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1255') do |klass|
1990
- end
1324
+ end
1991
1325
 
1992
- ##
1993
- # Constant: Encoding::Windows_1256
1994
- # Created: 2013-04-09 14:56:18 +0200
1995
- # Platform: rbx 2.0.0.rc1
1996
- #
1997
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1256') do |klass|
1998
- end
1326
+ defs.define_constant('Encoding::Windows_1258') do |klass|
1327
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1999
1328
 
2000
- ##
2001
- # Constant: Encoding::Windows_1257
2002
- # Created: 2013-04-09 14:56:18 +0200
2003
- # Platform: rbx 2.0.0.rc1
2004
- #
2005
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1257') do |klass|
2006
- end
1329
+ end
2007
1330
 
2008
- ##
2009
- # Constant: Encoding::Windows_1258
2010
- # Created: 2013-04-09 14:56:18 +0200
2011
- # Platform: rbx 2.0.0.rc1
2012
- #
2013
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_1258') do |klass|
2014
- end
1331
+ defs.define_constant('Encoding::Windows_31J') do |klass|
1332
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2015
1333
 
2016
- ##
2017
- # Constant: Encoding::Windows_31J
2018
- # Created: 2013-04-09 14:56:18 +0200
2019
- # Platform: rbx 2.0.0.rc1
2020
- #
2021
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_31J') do |klass|
2022
- end
1334
+ end
2023
1335
 
2024
- ##
2025
- # Constant: Encoding::Windows_874
2026
- # Created: 2013-04-09 14:56:18 +0200
2027
- # Platform: rbx 2.0.0.rc1
2028
- #
2029
- RubyLint::GlobalScope.definitions.define_constant('Encoding::Windows_874') do |klass|
2030
- end
1336
+ defs.define_constant('Encoding::Windows_874') do |klass|
1337
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
2031
1338
 
2032
- RubyLint::GlobalScope.definitions.lookup(:const, 'Encoding').deep_freeze
1339
+ end
1340
+ end