clean-architecture 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +21 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +42 -0
  6. data/Gemfile +1 -0
  7. data/README.md +423 -4
  8. data/clean-architecture.gemspec +9 -5
  9. data/generate_require_files.rb +1 -0
  10. data/lib/clean-architecture.rb +1 -0
  11. data/lib/clean_architecture/adapters/all.rb +1 -0
  12. data/lib/clean_architecture/adapters/attribute_hash_base.rb +1 -0
  13. data/lib/clean_architecture/all.rb +3 -0
  14. data/lib/clean_architecture/builders/abstract_active_record_entity_builder.rb +124 -0
  15. data/lib/clean_architecture/builders/all.rb +6 -0
  16. data/lib/clean_architecture/checks/all.rb +1 -0
  17. data/lib/clean_architecture/checks/authorization.rb +1 -0
  18. data/lib/clean_architecture/entities/all.rb +1 -0
  19. data/lib/clean_architecture/entities/failure_details.rb +2 -1
  20. data/lib/clean_architecture/entities/targeted_parameters.rb +1 -0
  21. data/lib/clean_architecture/entities/untargeted_parameters.rb +1 -0
  22. data/lib/clean_architecture/interfaces/all.rb +1 -0
  23. data/lib/clean_architecture/interfaces/authorization_parameters.rb +1 -0
  24. data/lib/clean_architecture/interfaces/base_parameters.rb +1 -0
  25. data/lib/clean_architecture/interfaces/jsonable.rb +1 -0
  26. data/lib/clean_architecture/interfaces/success_payload.rb +1 -0
  27. data/lib/clean_architecture/interfaces/targeted_parameters.rb +1 -0
  28. data/lib/clean_architecture/interfaces/use_case.rb +1 -0
  29. data/lib/clean_architecture/interfaces/use_case_actor.rb +1 -0
  30. data/lib/clean_architecture/interfaces/use_case_target.rb +1 -0
  31. data/lib/clean_architecture/matchers/all.rb +1 -0
  32. data/lib/clean_architecture/matchers/use_case_result.rb +1 -0
  33. data/lib/clean_architecture/queries/all.rb +1 -0
  34. data/lib/clean_architecture/queries/http_failure_code.rb +1 -0
  35. data/lib/clean_architecture/queries/http_success_code.rb +1 -0
  36. data/lib/clean_architecture/serializers/all.rb +1 -0
  37. data/lib/clean_architecture/serializers/html_response_from_result.rb +1 -0
  38. data/lib/clean_architecture/serializers/json_response_from_result.rb +1 -0
  39. data/lib/clean_architecture/serializers/success_collection_payload.rb +1 -0
  40. data/lib/clean_architecture/serializers/success_payload.rb +1 -0
  41. data/lib/clean_architecture/types.rb +2 -1
  42. data/lib/clean_architecture/use_cases/abstract_use_case.rb +62 -0
  43. data/lib/clean_architecture/use_cases/all.rb +10 -0
  44. data/lib/clean_architecture/use_cases/contract.rb +9 -0
  45. data/lib/clean_architecture/use_cases/errors.rb +57 -0
  46. data/lib/clean_architecture/use_cases/form.rb +116 -0
  47. data/lib/clean_architecture/use_cases/parameters.rb +42 -0
  48. data/lib/clean_architecture/version.rb +2 -1
  49. data/sorbet/config +2 -0
  50. data/sorbet/rbi/gems/activemodel.rbi +74 -0
  51. data/sorbet/rbi/gems/activesupport.rbi +440 -0
  52. data/sorbet/rbi/gems/ast.rbi +47 -0
  53. data/sorbet/rbi/gems/axiom-types.rbi +159 -0
  54. data/sorbet/rbi/gems/byebug.rbi +1039 -0
  55. data/sorbet/rbi/gems/codeclimate-engine-rb.rbi +123 -0
  56. data/sorbet/rbi/gems/coderay.rbi +91 -0
  57. data/sorbet/rbi/gems/coercible.rbi +156 -0
  58. data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
  59. data/sorbet/rbi/gems/descendants_tracker.rbi +17 -0
  60. data/sorbet/rbi/gems/docile.rbi +31 -0
  61. data/sorbet/rbi/gems/dry-configurable.rbi +89 -0
  62. data/sorbet/rbi/gems/dry-container.rbi +88 -0
  63. data/sorbet/rbi/gems/dry-core.rbi +79 -0
  64. data/sorbet/rbi/gems/dry-equalizer.rbi +25 -0
  65. data/sorbet/rbi/gems/dry-inflector.rbi +72 -0
  66. data/sorbet/rbi/gems/dry-initializer.rbi +209 -0
  67. data/sorbet/rbi/gems/dry-logic.rbi +304 -0
  68. data/sorbet/rbi/gems/dry-matcher.rbi +33 -0
  69. data/sorbet/rbi/gems/dry-monads.rbi +508 -0
  70. data/sorbet/rbi/gems/dry-schema.rbi +790 -0
  71. data/sorbet/rbi/gems/dry-struct.rbi +165 -0
  72. data/sorbet/rbi/gems/dry-types.rbi +688 -0
  73. data/sorbet/rbi/gems/dry-validation.rbi +284 -0
  74. data/sorbet/rbi/gems/duckface-interfaces.rbi +93 -0
  75. data/sorbet/rbi/gems/equalizer.rbi +22 -0
  76. data/sorbet/rbi/gems/i18n.rbi +132 -0
  77. data/sorbet/rbi/gems/ice_nine.rbi +66 -0
  78. data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
  79. data/sorbet/rbi/gems/kwalify.rbi +339 -0
  80. data/sorbet/rbi/gems/method_source.rbi +63 -0
  81. data/sorbet/rbi/gems/parallel.rbi +81 -0
  82. data/sorbet/rbi/gems/parser.rbi +1293 -0
  83. data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
  84. data/sorbet/rbi/gems/pry.rbi +1964 -0
  85. data/sorbet/rbi/gems/psych.rbi +462 -0
  86. data/sorbet/rbi/gems/rainbow.rbi +117 -0
  87. data/sorbet/rbi/gems/rake.rbi +634 -0
  88. data/sorbet/rbi/gems/rb-readline.rbi +766 -0
  89. data/sorbet/rbi/gems/reek.rbi +1066 -0
  90. data/sorbet/rbi/gems/rspec-core.rbi +1658 -0
  91. data/sorbet/rbi/gems/rspec-expectations.rbi +430 -0
  92. data/sorbet/rbi/gems/rspec-mocks.rbi +815 -0
  93. data/sorbet/rbi/gems/rspec-support.rbi +268 -0
  94. data/sorbet/rbi/gems/rspec.rbi +14 -0
  95. data/sorbet/rbi/gems/rubocop-rspec.rbi +875 -0
  96. data/sorbet/rbi/gems/rubocop.rbi +7014 -0
  97. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  98. data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
  99. data/sorbet/rbi/gems/simplecov.rbi +225 -0
  100. data/sorbet/rbi/gems/stackprof.rbi +51 -0
  101. data/sorbet/rbi/gems/thread_safe.rbi +81 -0
  102. data/sorbet/rbi/gems/timecop.rbi +97 -0
  103. data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
  104. data/sorbet/rbi/gems/virtus.rbi +421 -0
  105. data/sorbet/rbi/hidden-definitions/errors.txt +7332 -0
  106. data/sorbet/rbi/hidden-definitions/hidden.rbi +17521 -0
  107. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
  108. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
  109. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +625 -0
  110. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  111. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
  112. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
  113. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  114. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  115. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  116. data/sorbet/rbi/todo.rbi +12 -0
  117. metadata +156 -24
  118. data/Gemfile.lock +0 -187
@@ -0,0 +1,766 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rb-readline/all/rb-readline.rbi
9
+ #
10
+ # rb-readline-0.5.5
11
+ module RbReadline
12
+ def __rl_fix_point(x); end
13
+ def _extract_last_quote(string, quote_char); end
14
+ def _rl_abort_internal; end
15
+ def _rl_adjust_point(string, point); end
16
+ def _rl_any_typein; end
17
+ def _rl_arg_dispatch(cxt, c); end
18
+ def _rl_arg_getchar; end
19
+ def _rl_arg_init; end
20
+ def _rl_arg_overflow; end
21
+ def _rl_backspace(count); end
22
+ def _rl_bind_tty_special_chars(kmap); end
23
+ def _rl_char_search(count, fdir, bdir); end
24
+ def _rl_char_search_internal(count, dir, smbchar, len); end
25
+ def _rl_char_value(buf, ind); end
26
+ def _rl_clean_up_for_exit; end
27
+ def _rl_clear_screen; end
28
+ def _rl_clear_to_eol(count); end
29
+ def _rl_col_width(string, start, _end); end
30
+ def _rl_compare_chars(buf1, pos1, buf2, pos2); end
31
+ def _rl_control_keypad(on); end
32
+ def _rl_copy_to_kill_ring(text, append); end
33
+ def _rl_current_display_line; end
34
+ def _rl_dispatch(key, map); end
35
+ def _rl_dispatch_subseq(key, map, got_subseq); end
36
+ def _rl_enable_meta_key; end
37
+ def _rl_erase_at_end_of_line(l); end
38
+ def _rl_erase_entire_line; end
39
+ def _rl_find_completion_word; end
40
+ def _rl_find_next_mbchar(string, seed, count, flags); end
41
+ def _rl_find_prev_mbchar(string, seed, flags); end
42
+ def _rl_fix_point(fix_mark_too); end
43
+ def _rl_get_char_len(src); end
44
+ def _rl_get_screen_size(tty, ignore_env); end
45
+ def _rl_history_set_point; end
46
+ def _rl_init_eightbit; end
47
+ def _rl_init_line_state; end
48
+ def _rl_init_terminal_io(terminal_name); end
49
+ def _rl_input_available; end
50
+ def _rl_insert_char(count, c); end
51
+ def _rl_insert_next(count); end
52
+ def _rl_insert_typein(c); end
53
+ def _rl_internal_char_cleanup; end
54
+ def _rl_internal_pager(lines); end
55
+ def _rl_is_mbchar_matched(string, seed, _end, mbchar, length); end
56
+ def _rl_isearch_cleanup(cxt, r); end
57
+ def _rl_isearch_dispatch(cxt, c); end
58
+ def _rl_isearch_fini(cxt); end
59
+ def _rl_isearch_init(direction); end
60
+ def _rl_make_prompt_for_search(pchar); end
61
+ def _rl_move_cursor_relative(new, data, start = nil); end
62
+ def _rl_move_vert(to); end
63
+ def _rl_nsearch_abort(cxt); end
64
+ def _rl_nsearch_cleanup(cxt, r); end
65
+ def _rl_nsearch_dispatch(cxt, c); end
66
+ def _rl_nsearch_dosearch(cxt); end
67
+ def _rl_nsearch_init(dir, pchar); end
68
+ def _rl_output_some_chars(string, start, count); end
69
+ def _rl_overwrite_char(count, c); end
70
+ def _rl_overwrite_rubout(count, key); end
71
+ def _rl_read_init_file(filename, include_level); end
72
+ def _rl_read_mbchar(mbchar, size); end
73
+ def _rl_read_mbstring(first, mb, mlen); end
74
+ def _rl_redisplay_after_sigwinch; end
75
+ def _rl_replace_text(text, start, _end); end
76
+ def _rl_reset_argument; end
77
+ def _rl_rubout_char(count, key); end
78
+ def _rl_scxt_alloc(type, flags); end
79
+ def _rl_search_getchar(cxt); end
80
+ def _rl_set_insert_mode(im, force); end
81
+ def _rl_set_mark_at_pos(position); end
82
+ def _rl_start_using_history; end
83
+ def _rl_strip_prompt(pmt); end
84
+ def _rl_subseq_getchar(key); end
85
+ def _rl_to_lower(char); end
86
+ def _rl_unget_char(key); end
87
+ def _rl_update_final; end
88
+ def _rl_vi_done_inserting; end
89
+ def _rl_vi_initialize_line; end
90
+ def _rl_vi_reset_last; end
91
+ def _rl_vi_save_insert(up); end
92
+ def _rl_vi_textmod_command(c); end
93
+ def _rl_walphabetic(c); end
94
+ def add_history(string); end
95
+ def alloc_history_entry(string, ts); end
96
+ def alloc_undo_entry(what, start, _end, text); end
97
+ def append_to_match(text, delimiter, quote_char, nontrivial_match); end
98
+ def bind_arrow_keys; end
99
+ def bind_arrow_keys_internal(map); end
100
+ def bind_termcap_arrow_keys(map); end
101
+ def block_sigint; end
102
+ def clear_history; end
103
+ def compute_lcd_of_matches(match_list, matches, text); end
104
+ def cr; end
105
+ def cr_faster(new, cur); end
106
+ def ctrl_char(c); end
107
+ def current_history; end
108
+ def delete_chars(count); end
109
+ def display_matches(matches); end
110
+ def endsrch_char(c); end
111
+ def expand_prompt(pmt); end
112
+ def fnprint(to_print); end
113
+ def fnwidth(string); end
114
+ def gen_completion_matches(text, start, _end, our_func, found_quote, quote_char); end
115
+ def get_term_capabilities(buffer); end
116
+ def get_y_or_n(for_pager); end
117
+ def handle_parser_directive(statement); end
118
+ def hist_inittime; end
119
+ def history_arg_extract(first, last, string); end
120
+ def history_base; end
121
+ def history_base=(arg0); end
122
+ def history_get(offset); end
123
+ def history_is_stifled; end
124
+ def history_length; end
125
+ def history_length=(arg0); end
126
+ def history_list; end
127
+ def history_search_pos(string, dir, pos); end
128
+ def history_search_prefix(string, direction); end
129
+ def history_set_pos(pos); end
130
+ def ibuffer_space; end
131
+ def init_line_structures(minsize); end
132
+ def insert_all_matches(matches, point, qc); end
133
+ def insert_match(match, start, mtype, qc); end
134
+ def insert_some_chars(string, count, col); end
135
+ def inv_line(line); end
136
+ def inv_llen(l); end
137
+ def isascii(c); end
138
+ def isprint(c); end
139
+ def m_offset(margin, offset); end
140
+ def make_history_line_current(entry); end
141
+ def make_quoted_replacement(match, mtype, qc); end
142
+ def meta_char(c); end
143
+ def next_history; end
144
+ def no_terminal?; end
145
+ def noninc_dosearch(string, dir); end
146
+ def noninc_search(dir, pchar); end
147
+ def noninc_search_from_pos(string, pos, dir); end
148
+ def parser_else(args); end
149
+ def parser_endif(args); end
150
+ def parser_if(args); end
151
+ def parser_include(args); end
152
+ def path_isdir(filename); end
153
+ def postprocess_matches(matchesp, matching_filenames); end
154
+ def prepare_terminal_settings(meta_flag); end
155
+ def previous_history; end
156
+ def print_filename(to_print, full_pathname); end
157
+ def printable_part(pathname); end
158
+ def prompt_ending_index; end
159
+ def readline(prompt); end
160
+ def readline_default_bindings; end
161
+ def readline_initialize_everything; end
162
+ def readline_internal; end
163
+ def readline_internal_charloop; end
164
+ def readline_internal_setup; end
165
+ def readline_internal_teardown(eof); end
166
+ def redraw_prompt(t); end
167
+ def release_sigint; end
168
+ def remove_duplicate_matches(matches); end
169
+ def remove_history(which); end
170
+ def replace_history_data(which, old, new); end
171
+ def replace_history_entry(which, line, data); end
172
+ def retry_if_interrupted(&block); end
173
+ def rl_abort(count, key); end
174
+ def rl_add_undo(what, start, _end, text); end
175
+ def rl_alphabetic(c); end
176
+ def rl_arrow_keys(count, c); end
177
+ def rl_attempted_completion_function; end
178
+ def rl_attempted_completion_function=(arg0); end
179
+ def rl_attempted_completion_over; end
180
+ def rl_attempted_completion_over=(arg0); end
181
+ def rl_backward(count, key); end
182
+ def rl_backward_byte(count, key); end
183
+ def rl_backward_char(count, key); end
184
+ def rl_backward_char_search(count, key); end
185
+ def rl_backward_kill_line(direction, ignore); end
186
+ def rl_backward_kill_word(count, ignore); end
187
+ def rl_backward_word(count, key); end
188
+ def rl_basic_quote_characters; end
189
+ def rl_basic_quote_characters=(arg0); end
190
+ def rl_basic_word_break_characters; end
191
+ def rl_basic_word_break_characters=(arg0); end
192
+ def rl_beg_of_line(count, key); end
193
+ def rl_begin_undo_group; end
194
+ def rl_beginning_of_history(count, key); end
195
+ def rl_bind_key(key, function); end
196
+ def rl_bind_keyseq_if_unbound(keyseq, default_func); end
197
+ def rl_bind_keyseq_if_unbound_in_map(keyseq, default_func, kmap); end
198
+ def rl_bind_keyseq_in_map(keyseq, function, map); end
199
+ def rl_capitalize_word(count, key); end
200
+ def rl_change_case(count, op); end
201
+ def rl_char_search(count, key); end
202
+ def rl_character_len(c, pos); end
203
+ def rl_cleanup_after_signal; end
204
+ def rl_clear_message; end
205
+ def rl_clear_pending_input; end
206
+ def rl_clear_screen(count, key); end
207
+ def rl_clear_signals; end
208
+ def rl_complete(ignore, invoking_key); end
209
+ def rl_complete_internal(what_to_do); end
210
+ def rl_completer_quote_characters; end
211
+ def rl_completer_quote_characters=(arg0); end
212
+ def rl_completer_word_break_characters; end
213
+ def rl_completer_word_break_characters=(arg0); end
214
+ def rl_completion_append_character; end
215
+ def rl_completion_append_character=(arg0); end
216
+ def rl_completion_matches(text, entry_function); end
217
+ def rl_copy_text(from, to); end
218
+ def rl_crlf; end
219
+ def rl_delete(count, key); end
220
+ def rl_delete_horizontal_space(count, ignore); end
221
+ def rl_delete_or_show_completions(count, key); end
222
+ def rl_delete_text(from, to); end
223
+ def rl_deprep_term_function; end
224
+ def rl_deprep_term_function=(arg0); end
225
+ def rl_deprep_terminal; end
226
+ def rl_digit_argument(ignore, key); end
227
+ def rl_digit_loop; end
228
+ def rl_ding; end
229
+ def rl_display_match_list(matches, len, max); end
230
+ def rl_display_search(search_string, reverse_p, where); end
231
+ def rl_do_lowercase_version(ignore1, ignore2); end
232
+ def rl_do_undo; end
233
+ def rl_downcase_word(count, key); end
234
+ def rl_emacs_editing_mode(count, key); end
235
+ def rl_end_of_history(count, key); end
236
+ def rl_end_of_line(count, key); end
237
+ def rl_end_undo_group; end
238
+ def rl_event_hook; end
239
+ def rl_event_hook=(arg0); end
240
+ def rl_exchange_point_and_mark(count, key); end
241
+ def rl_execute_next(c); end
242
+ def rl_expand_prompt(prompt); end
243
+ def rl_extend_line_buffer(len); end
244
+ def rl_filename_completion_function(text, state); end
245
+ def rl_filename_quote_characters; end
246
+ def rl_filename_quote_characters=(arg0); end
247
+ def rl_forced_update_display; end
248
+ def rl_forward(count, key); end
249
+ def rl_forward_byte(count, key); end
250
+ def rl_forward_char(count, key); end
251
+ def rl_forward_search_history(sign, key); end
252
+ def rl_forward_word(count, key); end
253
+ def rl_free_undo_list; end
254
+ def rl_function_of_keyseq(keyseq, map, type); end
255
+ def rl_gather_tyi; end
256
+ def rl_generic_bind(type, keyseq, data, map); end
257
+ def rl_get_char; end
258
+ def rl_get_keymap_name_from_edit_mode; end
259
+ def rl_get_next_history(count, key); end
260
+ def rl_get_previous_history(count, key); end
261
+ def rl_getc(stream); end
262
+ def rl_initialize; end
263
+ def rl_insert(count, c); end
264
+ def rl_insert_comment(count, key); end
265
+ def rl_insert_completions(ignore, invoking_key); end
266
+ def rl_insert_text(string); end
267
+ def rl_instream; end
268
+ def rl_instream=(arg0); end
269
+ def rl_isstate(x); end
270
+ def rl_kill_full_line(count, ignore); end
271
+ def rl_kill_line(direction, ignore); end
272
+ def rl_kill_text(from, to); end
273
+ def rl_kill_word(count, key); end
274
+ def rl_library_version; end
275
+ def rl_library_version=(arg0); end
276
+ def rl_line_buffer; end
277
+ def rl_maybe_replace_line; end
278
+ def rl_maybe_save_line; end
279
+ def rl_maybe_unsave_line; end
280
+ def rl_message(msg_buf); end
281
+ def rl_modifying(start, _end); end
282
+ def rl_named_function(name); end
283
+ def rl_newline(count, key); end
284
+ def rl_noninc_forward_search(count, key); end
285
+ def rl_noninc_reverse_search(count, key); end
286
+ def rl_on_new_line; end
287
+ def rl_on_new_line_with_prompt; end
288
+ def rl_outstream; end
289
+ def rl_outstream=(arg0); end
290
+ def rl_overwrite_mode(count, key); end
291
+ def rl_parse_and_bind(string); end
292
+ def rl_point; end
293
+ def rl_point=(arg0); end
294
+ def rl_possible_completions(ignore, invoking_key); end
295
+ def rl_prep_terminal(meta_flag); end
296
+ def rl_quoted_insert(count, key); end
297
+ def rl_re_read_init_file(count, ignore); end
298
+ def rl_read_init_file(filename); end
299
+ def rl_read_key; end
300
+ def rl_readline_name; end
301
+ def rl_readline_name=(arg0); end
302
+ def rl_redisplay; end
303
+ def rl_refresh_line(ignore1, ignore2); end
304
+ def rl_replace_from_history(entry, flags); end
305
+ def rl_replace_line(text, clear_undo); end
306
+ def rl_reset_line_state; end
307
+ def rl_resize_terminal; end
308
+ def rl_restart_output(count, key); end
309
+ def rl_restore_prompt; end
310
+ def rl_reverse_search_history(sign, key); end
311
+ def rl_revert_line(count, key); end
312
+ def rl_rubout(count, key); end
313
+ def rl_rubout_or_delete(count, key); end
314
+ def rl_save_prompt; end
315
+ def rl_search_history(direction, invoking_key); end
316
+ def rl_set_keymap_from_edit_mode; end
317
+ def rl_set_mark(count, key); end
318
+ def rl_set_prompt(prompt); end
319
+ def rl_set_signals; end
320
+ def rl_setstate(x); end
321
+ def rl_sigwinch_handler(sig); end
322
+ def rl_stuff_char(key); end
323
+ def rl_tab_insert(count, key); end
324
+ def rl_tilde_expand(ignore, key); end
325
+ def rl_translate_keyseq(seq); end
326
+ def rl_transpose_chars(count, key); end
327
+ def rl_transpose_words(count, key); end
328
+ def rl_tty_set_default_bindings(kmap); end
329
+ def rl_tty_unset_default_bindings(kmap); end
330
+ def rl_undo_command(count, key); end
331
+ def rl_unix_filename_rubout(count, key); end
332
+ def rl_unix_line_discard(count, key); end
333
+ def rl_unix_word_rubout(count, key); end
334
+ def rl_unsetstate(x); end
335
+ def rl_upcase_word(count, key); end
336
+ def rl_username_completion_function(text, state); end
337
+ def rl_variable_bind(name, value); end
338
+ def rl_vi_check; end
339
+ def rl_vi_editing_mode(count, key); end
340
+ def rl_vi_insertion_mode(count, key); end
341
+ def rl_yank(count, ignore); end
342
+ def rl_yank_last_arg(count, key); end
343
+ def rl_yank_nth_arg(count, ignore); end
344
+ def rl_yank_nth_arg_internal(count, ignore, history_skip); end
345
+ def rl_yank_pop(count, key); end
346
+ def save_tty_chars; end
347
+ def self.__rl_fix_point(x); end
348
+ def self._extract_last_quote(string, quote_char); end
349
+ def self._rl_abort_internal; end
350
+ def self._rl_adjust_point(string, point); end
351
+ def self._rl_any_typein; end
352
+ def self._rl_arg_dispatch(cxt, c); end
353
+ def self._rl_arg_getchar; end
354
+ def self._rl_arg_init; end
355
+ def self._rl_arg_overflow; end
356
+ def self._rl_backspace(count); end
357
+ def self._rl_bind_tty_special_chars(kmap); end
358
+ def self._rl_char_search(count, fdir, bdir); end
359
+ def self._rl_char_search_internal(count, dir, smbchar, len); end
360
+ def self._rl_char_value(buf, ind); end
361
+ def self._rl_clean_up_for_exit; end
362
+ def self._rl_clear_screen; end
363
+ def self._rl_clear_to_eol(count); end
364
+ def self._rl_col_width(string, start, _end); end
365
+ def self._rl_compare_chars(buf1, pos1, buf2, pos2); end
366
+ def self._rl_control_keypad(on); end
367
+ def self._rl_copy_to_kill_ring(text, append); end
368
+ def self._rl_current_display_line; end
369
+ def self._rl_dispatch(key, map); end
370
+ def self._rl_dispatch_subseq(key, map, got_subseq); end
371
+ def self._rl_enable_meta_key; end
372
+ def self._rl_erase_at_end_of_line(l); end
373
+ def self._rl_erase_entire_line; end
374
+ def self._rl_find_completion_word; end
375
+ def self._rl_find_next_mbchar(string, seed, count, flags); end
376
+ def self._rl_find_prev_mbchar(string, seed, flags); end
377
+ def self._rl_fix_point(fix_mark_too); end
378
+ def self._rl_get_char_len(src); end
379
+ def self._rl_get_screen_size(tty, ignore_env); end
380
+ def self._rl_history_set_point; end
381
+ def self._rl_init_eightbit; end
382
+ def self._rl_init_line_state; end
383
+ def self._rl_init_terminal_io(terminal_name); end
384
+ def self._rl_input_available; end
385
+ def self._rl_insert_char(count, c); end
386
+ def self._rl_insert_next(count); end
387
+ def self._rl_insert_typein(c); end
388
+ def self._rl_internal_char_cleanup; end
389
+ def self._rl_internal_pager(lines); end
390
+ def self._rl_is_mbchar_matched(string, seed, _end, mbchar, length); end
391
+ def self._rl_isearch_cleanup(cxt, r); end
392
+ def self._rl_isearch_dispatch(cxt, c); end
393
+ def self._rl_isearch_fini(cxt); end
394
+ def self._rl_isearch_init(direction); end
395
+ def self._rl_make_prompt_for_search(pchar); end
396
+ def self._rl_move_cursor_relative(new, data, start = nil); end
397
+ def self._rl_move_vert(to); end
398
+ def self._rl_nsearch_abort(cxt); end
399
+ def self._rl_nsearch_cleanup(cxt, r); end
400
+ def self._rl_nsearch_dispatch(cxt, c); end
401
+ def self._rl_nsearch_dosearch(cxt); end
402
+ def self._rl_nsearch_init(dir, pchar); end
403
+ def self._rl_output_some_chars(string, start, count); end
404
+ def self._rl_overwrite_char(count, c); end
405
+ def self._rl_overwrite_rubout(count, key); end
406
+ def self._rl_read_init_file(filename, include_level); end
407
+ def self._rl_read_mbchar(mbchar, size); end
408
+ def self._rl_read_mbstring(first, mb, mlen); end
409
+ def self._rl_redisplay_after_sigwinch; end
410
+ def self._rl_replace_text(text, start, _end); end
411
+ def self._rl_reset_argument; end
412
+ def self._rl_rubout_char(count, key); end
413
+ def self._rl_scxt_alloc(type, flags); end
414
+ def self._rl_search_getchar(cxt); end
415
+ def self._rl_set_insert_mode(im, force); end
416
+ def self._rl_set_mark_at_pos(position); end
417
+ def self._rl_start_using_history; end
418
+ def self._rl_strip_prompt(pmt); end
419
+ def self._rl_subseq_getchar(key); end
420
+ def self._rl_to_lower(char); end
421
+ def self._rl_unget_char(key); end
422
+ def self._rl_update_final; end
423
+ def self._rl_vi_done_inserting; end
424
+ def self._rl_vi_initialize_line; end
425
+ def self._rl_vi_reset_last; end
426
+ def self._rl_vi_save_insert(up); end
427
+ def self._rl_vi_textmod_command(c); end
428
+ def self._rl_walphabetic(c); end
429
+ def self.add_history(string); end
430
+ def self.alloc_history_entry(string, ts); end
431
+ def self.alloc_undo_entry(what, start, _end, text); end
432
+ def self.append_to_match(text, delimiter, quote_char, nontrivial_match); end
433
+ def self.bind_arrow_keys; end
434
+ def self.bind_arrow_keys_internal(map); end
435
+ def self.bind_termcap_arrow_keys(map); end
436
+ def self.block_sigint; end
437
+ def self.clear_history; end
438
+ def self.compute_lcd_of_matches(match_list, matches, text); end
439
+ def self.cr; end
440
+ def self.cr_faster(new, cur); end
441
+ def self.ctrl_char(c); end
442
+ def self.current_history; end
443
+ def self.delete_chars(count); end
444
+ def self.display_matches(matches); end
445
+ def self.endsrch_char(c); end
446
+ def self.expand_prompt(pmt); end
447
+ def self.fnprint(to_print); end
448
+ def self.fnwidth(string); end
449
+ def self.gen_completion_matches(text, start, _end, our_func, found_quote, quote_char); end
450
+ def self.get_term_capabilities(buffer); end
451
+ def self.get_y_or_n(for_pager); end
452
+ def self.handle_parser_directive(statement); end
453
+ def self.hist_inittime; end
454
+ def self.history_arg_extract(first, last, string); end
455
+ def self.history_base; end
456
+ def self.history_get(offset); end
457
+ def self.history_is_stifled; end
458
+ def self.history_length; end
459
+ def self.history_list; end
460
+ def self.history_search_pos(string, dir, pos); end
461
+ def self.history_search_prefix(string, direction); end
462
+ def self.history_set_pos(pos); end
463
+ def self.ibuffer_space; end
464
+ def self.init_line_structures(minsize); end
465
+ def self.insert_all_matches(matches, point, qc); end
466
+ def self.insert_match(match, start, mtype, qc); end
467
+ def self.insert_some_chars(string, count, col); end
468
+ def self.inv_line(line); end
469
+ def self.inv_llen(l); end
470
+ def self.isascii(c); end
471
+ def self.isprint(c); end
472
+ def self.m_offset(margin, offset); end
473
+ def self.make_history_line_current(entry); end
474
+ def self.make_quoted_replacement(match, mtype, qc); end
475
+ def self.meta_char(c); end
476
+ def self.next_history; end
477
+ def self.no_terminal?; end
478
+ def self.noninc_dosearch(string, dir); end
479
+ def self.noninc_search(dir, pchar); end
480
+ def self.noninc_search_from_pos(string, pos, dir); end
481
+ def self.parser_else(args); end
482
+ def self.parser_endif(args); end
483
+ def self.parser_if(args); end
484
+ def self.parser_include(args); end
485
+ def self.path_isdir(filename); end
486
+ def self.postprocess_matches(matchesp, matching_filenames); end
487
+ def self.prepare_terminal_settings(meta_flag); end
488
+ def self.previous_history; end
489
+ def self.print_filename(to_print, full_pathname); end
490
+ def self.printable_part(pathname); end
491
+ def self.prompt_ending_index; end
492
+ def self.readline(prompt); end
493
+ def self.readline_default_bindings; end
494
+ def self.readline_initialize_everything; end
495
+ def self.readline_internal; end
496
+ def self.readline_internal_charloop; end
497
+ def self.readline_internal_setup; end
498
+ def self.readline_internal_teardown(eof); end
499
+ def self.redraw_prompt(t); end
500
+ def self.release_sigint; end
501
+ def self.remove_duplicate_matches(matches); end
502
+ def self.remove_history(which); end
503
+ def self.replace_history_data(which, old, new); end
504
+ def self.replace_history_entry(which, line, data); end
505
+ def self.retry_if_interrupted(&block); end
506
+ def self.rl_abort(count, key); end
507
+ def self.rl_add_undo(what, start, _end, text); end
508
+ def self.rl_alphabetic(c); end
509
+ def self.rl_arrow_keys(count, c); end
510
+ def self.rl_attempted_completion_function; end
511
+ def self.rl_attempted_completion_function=(arg0); end
512
+ def self.rl_attempted_completion_over; end
513
+ def self.rl_attempted_completion_over=(arg0); end
514
+ def self.rl_backward(count, key); end
515
+ def self.rl_backward_byte(count, key); end
516
+ def self.rl_backward_char(count, key); end
517
+ def self.rl_backward_char_search(count, key); end
518
+ def self.rl_backward_kill_line(direction, ignore); end
519
+ def self.rl_backward_kill_word(count, ignore); end
520
+ def self.rl_backward_word(count, key); end
521
+ def self.rl_basic_quote_characters; end
522
+ def self.rl_basic_quote_characters=(arg0); end
523
+ def self.rl_basic_word_break_characters; end
524
+ def self.rl_basic_word_break_characters=(arg0); end
525
+ def self.rl_beg_of_line(count, key); end
526
+ def self.rl_begin_undo_group; end
527
+ def self.rl_beginning_of_history(count, key); end
528
+ def self.rl_bind_key(key, function); end
529
+ def self.rl_bind_keyseq_if_unbound(keyseq, default_func); end
530
+ def self.rl_bind_keyseq_if_unbound_in_map(keyseq, default_func, kmap); end
531
+ def self.rl_bind_keyseq_in_map(keyseq, function, map); end
532
+ def self.rl_capitalize_word(count, key); end
533
+ def self.rl_change_case(count, op); end
534
+ def self.rl_char_search(count, key); end
535
+ def self.rl_character_len(c, pos); end
536
+ def self.rl_cleanup_after_signal; end
537
+ def self.rl_clear_message; end
538
+ def self.rl_clear_pending_input; end
539
+ def self.rl_clear_screen(count, key); end
540
+ def self.rl_clear_signals; end
541
+ def self.rl_complete(ignore, invoking_key); end
542
+ def self.rl_complete_internal(what_to_do); end
543
+ def self.rl_completer_quote_characters; end
544
+ def self.rl_completer_quote_characters=(arg0); end
545
+ def self.rl_completer_word_break_characters; end
546
+ def self.rl_completer_word_break_characters=(arg0); end
547
+ def self.rl_completion_append_character; end
548
+ def self.rl_completion_append_character=(arg0); end
549
+ def self.rl_completion_matches(text, entry_function); end
550
+ def self.rl_copy_text(from, to); end
551
+ def self.rl_crlf; end
552
+ def self.rl_delete(count, key); end
553
+ def self.rl_delete_horizontal_space(count, ignore); end
554
+ def self.rl_delete_or_show_completions(count, key); end
555
+ def self.rl_delete_text(from, to); end
556
+ def self.rl_deprep_term_function; end
557
+ def self.rl_deprep_term_function=(arg0); end
558
+ def self.rl_deprep_terminal; end
559
+ def self.rl_digit_argument(ignore, key); end
560
+ def self.rl_digit_loop; end
561
+ def self.rl_ding; end
562
+ def self.rl_display_match_list(matches, len, max); end
563
+ def self.rl_display_search(search_string, reverse_p, where); end
564
+ def self.rl_do_lowercase_version(ignore1, ignore2); end
565
+ def self.rl_do_undo; end
566
+ def self.rl_downcase_word(count, key); end
567
+ def self.rl_emacs_editing_mode(count, key); end
568
+ def self.rl_end_of_history(count, key); end
569
+ def self.rl_end_of_line(count, key); end
570
+ def self.rl_end_undo_group; end
571
+ def self.rl_event_hook; end
572
+ def self.rl_event_hook=(arg0); end
573
+ def self.rl_exchange_point_and_mark(count, key); end
574
+ def self.rl_execute_next(c); end
575
+ def self.rl_expand_prompt(prompt); end
576
+ def self.rl_extend_line_buffer(len); end
577
+ def self.rl_filename_completion_function(text, state); end
578
+ def self.rl_filename_quote_characters; end
579
+ def self.rl_filename_quote_characters=(arg0); end
580
+ def self.rl_forced_update_display; end
581
+ def self.rl_forward(count, key); end
582
+ def self.rl_forward_byte(count, key); end
583
+ def self.rl_forward_char(count, key); end
584
+ def self.rl_forward_search_history(sign, key); end
585
+ def self.rl_forward_word(count, key); end
586
+ def self.rl_free_undo_list; end
587
+ def self.rl_function_of_keyseq(keyseq, map, type); end
588
+ def self.rl_gather_tyi; end
589
+ def self.rl_generic_bind(type, keyseq, data, map); end
590
+ def self.rl_get_char; end
591
+ def self.rl_get_keymap_name_from_edit_mode; end
592
+ def self.rl_get_next_history(count, key); end
593
+ def self.rl_get_previous_history(count, key); end
594
+ def self.rl_getc(stream); end
595
+ def self.rl_initialize; end
596
+ def self.rl_insert(count, c); end
597
+ def self.rl_insert_comment(count, key); end
598
+ def self.rl_insert_completions(ignore, invoking_key); end
599
+ def self.rl_insert_text(string); end
600
+ def self.rl_instream; end
601
+ def self.rl_instream=(arg0); end
602
+ def self.rl_isstate(x); end
603
+ def self.rl_kill_full_line(count, ignore); end
604
+ def self.rl_kill_line(direction, ignore); end
605
+ def self.rl_kill_text(from, to); end
606
+ def self.rl_kill_word(count, key); end
607
+ def self.rl_library_version; end
608
+ def self.rl_library_version=(arg0); end
609
+ def self.rl_line_buffer; end
610
+ def self.rl_maybe_replace_line; end
611
+ def self.rl_maybe_save_line; end
612
+ def self.rl_maybe_unsave_line; end
613
+ def self.rl_message(msg_buf); end
614
+ def self.rl_modifying(start, _end); end
615
+ def self.rl_named_function(name); end
616
+ def self.rl_newline(count, key); end
617
+ def self.rl_noninc_forward_search(count, key); end
618
+ def self.rl_noninc_reverse_search(count, key); end
619
+ def self.rl_on_new_line; end
620
+ def self.rl_on_new_line_with_prompt; end
621
+ def self.rl_outstream; end
622
+ def self.rl_outstream=(arg0); end
623
+ def self.rl_overwrite_mode(count, key); end
624
+ def self.rl_parse_and_bind(string); end
625
+ def self.rl_point; end
626
+ def self.rl_possible_completions(ignore, invoking_key); end
627
+ def self.rl_prep_terminal(meta_flag); end
628
+ def self.rl_quoted_insert(count, key); end
629
+ def self.rl_re_read_init_file(count, ignore); end
630
+ def self.rl_read_init_file(filename); end
631
+ def self.rl_read_key; end
632
+ def self.rl_readline_name; end
633
+ def self.rl_readline_name=(arg0); end
634
+ def self.rl_redisplay; end
635
+ def self.rl_refresh_line(ignore1, ignore2); end
636
+ def self.rl_replace_from_history(entry, flags); end
637
+ def self.rl_replace_line(text, clear_undo); end
638
+ def self.rl_reset_line_state; end
639
+ def self.rl_resize_terminal; end
640
+ def self.rl_restart_output(count, key); end
641
+ def self.rl_restore_prompt; end
642
+ def self.rl_reverse_search_history(sign, key); end
643
+ def self.rl_revert_line(count, key); end
644
+ def self.rl_rubout(count, key); end
645
+ def self.rl_rubout_or_delete(count, key); end
646
+ def self.rl_save_prompt; end
647
+ def self.rl_search_history(direction, invoking_key); end
648
+ def self.rl_set_keymap_from_edit_mode; end
649
+ def self.rl_set_mark(count, key); end
650
+ def self.rl_set_prompt(prompt); end
651
+ def self.rl_set_signals; end
652
+ def self.rl_setstate(x); end
653
+ def self.rl_sigwinch_handler(sig); end
654
+ def self.rl_stuff_char(key); end
655
+ def self.rl_tab_insert(count, key); end
656
+ def self.rl_tilde_expand(ignore, key); end
657
+ def self.rl_translate_keyseq(seq); end
658
+ def self.rl_transpose_chars(count, key); end
659
+ def self.rl_transpose_words(count, key); end
660
+ def self.rl_tty_set_default_bindings(kmap); end
661
+ def self.rl_tty_unset_default_bindings(kmap); end
662
+ def self.rl_undo_command(count, key); end
663
+ def self.rl_unix_filename_rubout(count, key); end
664
+ def self.rl_unix_line_discard(count, key); end
665
+ def self.rl_unix_word_rubout(count, key); end
666
+ def self.rl_unsetstate(x); end
667
+ def self.rl_upcase_word(count, key); end
668
+ def self.rl_username_completion_function(text, state); end
669
+ def self.rl_variable_bind(name, value); end
670
+ def self.rl_vi_check; end
671
+ def self.rl_vi_editing_mode(count, key); end
672
+ def self.rl_vi_insertion_mode(count, key); end
673
+ def self.rl_yank(count, ignore); end
674
+ def self.rl_yank_last_arg(count, key); end
675
+ def self.rl_yank_nth_arg(count, ignore); end
676
+ def self.rl_yank_nth_arg_internal(count, ignore, history_skip); end
677
+ def self.rl_yank_pop(count, key); end
678
+ def self.save_tty_chars; end
679
+ def self.set_completion_defaults(what_to_do); end
680
+ def self.sh_set_lines_and_columns(lines, cols); end
681
+ def self.space_to_eol(count); end
682
+ def self.stat_char(filename); end
683
+ def self.stifle_history(max); end
684
+ def self.tgetflag(name); end
685
+ def self.trans(i); end
686
+ def self.unstifle_history; end
687
+ def self.update_line(old, ostart, new, current_line, omax, nmax, inv_botlin); end
688
+ def self.using_history; end
689
+ def self.vis_chars(line); end
690
+ def self.vis_line(line); end
691
+ def self.vis_llen(l); end
692
+ def self.vis_pos(line); end
693
+ def self.w_offset(line, offset); end
694
+ def self.where_history; end
695
+ def self.whitespace(c); end
696
+ def set_completion_defaults(what_to_do); end
697
+ def sh_set_lines_and_columns(lines, cols); end
698
+ def space_to_eol(count); end
699
+ def stat_char(filename); end
700
+ def stifle_history(max); end
701
+ def tgetflag(name); end
702
+ def trans(i); end
703
+ def unstifle_history; end
704
+ def update_line(old, ostart, new, current_line, omax, nmax, inv_botlin); end
705
+ def using_history; end
706
+ def vis_chars(line); end
707
+ def vis_line(line); end
708
+ def vis_llen(l); end
709
+ def vis_pos(line); end
710
+ def w_offset(line, offset); end
711
+ def where_history; end
712
+ def whitespace(c); end
713
+ end
714
+ class Integer < Numeric
715
+ end
716
+ module Readline
717
+ def readline(prompt = nil, add_history = nil); end
718
+ def self.basic_quote_characters; end
719
+ def self.basic_quote_characters=(str); end
720
+ def self.basic_word_break_characters; end
721
+ def self.basic_word_break_characters=(str); end
722
+ def self.completer_quote_characters; end
723
+ def self.completer_quote_characters=(str); end
724
+ def self.completer_word_break_characters; end
725
+ def self.completer_word_break_characters=(str); end
726
+ def self.completion_append_character; end
727
+ def self.completion_append_character=(char); end
728
+ def self.completion_case_fold; end
729
+ def self.completion_case_fold=(bool); end
730
+ def self.completion_proc; end
731
+ def self.completion_proc=(proc); end
732
+ def self.emacs_editing_mode; end
733
+ def self.filename_quote_characters; end
734
+ def self.filename_quote_characters=(str); end
735
+ def self.input=(input); end
736
+ def self.line_buffer; end
737
+ def self.output=(output); end
738
+ def self.point; end
739
+ def self.readline(prompt = nil, add_history = nil); end
740
+ def self.readline_attempted_completion_function(text, start, _end); end
741
+ def self.silence_warnings(&block); end
742
+ def self.vi_editing_mode; end
743
+ include RbReadline
744
+ end
745
+ class Readline::History
746
+ def self.<<(str); end
747
+ def self.[](index); end
748
+ def self.[]=(index, str); end
749
+ def self.delete_at(index); end
750
+ def self.each; end
751
+ def self.empty?; end
752
+ def self.length; end
753
+ def self.pop; end
754
+ def self.push(*args); end
755
+ def self.rb_remove_history(index); end
756
+ def self.shift; end
757
+ def self.size; end
758
+ def self.to_s; end
759
+ extend Enumerable
760
+ end
761
+ class Readline::Fcomp
762
+ def self.call(str); end
763
+ end
764
+ class Readline::Ucomp
765
+ def self.call(str); end
766
+ end