mootool 0.1.0 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.github/workflows/ci.yml +37 -0
  4. data/.github/workflows/gem-push.yml +44 -0
  5. data/.overcommit.yml +79 -0
  6. data/.rubocop.yml +144 -0
  7. data/.ruby-version +1 -1
  8. data/.run/All Specs.run.xml +46 -0
  9. data/CODE_OF_CONDUCT.md +2 -1
  10. data/Gemfile +14 -11
  11. data/Gemfile.lock +93 -34
  12. data/README.md +12 -6
  13. data/bin/tapioca +27 -0
  14. data/lib/mootool/command.rb +1 -0
  15. data/lib/mootool/controller_base.rb +4 -1
  16. data/lib/mootool/controllers/dwarf.rb +8 -0
  17. data/lib/mootool/controllers/dyld_linker.rb +8 -0
  18. data/lib/mootool/controllers/dyld_shared_cache.rb +8 -0
  19. data/lib/mootool/controllers/fat_binary.rb +8 -0
  20. data/lib/mootool/controllers/kernel_collection.rb +21 -15
  21. data/lib/mootool/controllers/sections.rb +8 -0
  22. data/lib/mootool/core_extensions.rb +26 -0
  23. data/lib/mootool/models/device_tree.rb +85 -0
  24. data/lib/mootool/models/img4.rb +49 -0
  25. data/lib/mootool/models/ipsw.rb +19 -0
  26. data/lib/mootool/version.rb +1 -1
  27. data/lib/mootool/views/sections.full.erb +2 -2
  28. data/lib/mootool.rb +10 -3
  29. data/mootool.gemspec +17 -14
  30. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  31. data/sorbet/rbi/gems/ast@2.4.2.rbi +618 -0
  32. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +447 -0
  33. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  34. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1219 -0
  35. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +1007 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1650 -0
  37. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  38. data/sorbet/rbi/gems/netrc@0.11.0.rbi +186 -0
  39. data/sorbet/rbi/gems/overcommit@0.59.1.rbi +2747 -0
  40. data/sorbet/rbi/gems/parallel@1.22.1.rbi +353 -0
  41. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +6198 -0
  42. data/sorbet/rbi/gems/plist@3.6.0.rbi +212 -0
  43. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  44. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +452 -0
  45. data/sorbet/rbi/gems/rake@13.0.6.rbi +3587 -0
  46. data/sorbet/rbi/gems/rbi@0.0.15.rbi +3619 -0
  47. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3927 -0
  48. data/sorbet/rbi/gems/rexml@3.2.5.rbi +5238 -0
  49. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +12834 -0
  50. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +9151 -0
  51. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +6506 -0
  52. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +2040 -0
  53. data/sorbet/rbi/gems/rspec@3.11.0.rbi +120 -0
  54. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +7990 -0
  55. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +413 -0
  56. data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +7604 -0
  57. data/sorbet/rbi/gems/rubocop@1.35.0.rbi +62260 -0
  58. data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +5039 -0
  59. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1445 -0
  60. data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +2868 -0
  61. data/sorbet/rbi/gems/spoom@1.1.12.rbi +2829 -0
  62. data/sorbet/rbi/gems/tapioca@0.9.3.rbi +2151 -0
  63. data/sorbet/rbi/gems/thor@1.2.1.rbi +4532 -0
  64. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +60 -0
  65. data/sorbet/rbi/gems/unparser@0.6.5.rbi +8 -0
  66. data/sorbet/rbi/gems/webrick@1.7.0.rbi +3075 -0
  67. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +458 -0
  68. data/sorbet/rbi/gems/yard@0.9.28.rbi +20844 -0
  69. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +72 -24
  70. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +1697 -385
  71. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +30 -7
  72. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +3 -1
  73. data/sorbet/rbi/todo.rbi +7 -0
  74. data/sorbet/tapioca/config.yml +13 -0
  75. data/sorbet/tapioca/require.rb +4 -0
  76. metadata +95 -14
@@ -0,0 +1,212 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `plist` gem.
5
+ # Please instead update this file by running `bin/tapioca gem plist`.
6
+
7
+ class Array
8
+ include ::Enumerable
9
+ include ::Plist::Emit
10
+ end
11
+
12
+ class Hash
13
+ include ::Enumerable
14
+ include ::Plist::Emit
15
+ end
16
+
17
+ # Plist parses Mac OS X xml property list files into ruby data structures.
18
+ #
19
+ # === Load a plist file
20
+ # This is the main point of the library:
21
+ #
22
+ # r = Plist.parse_xml(filename_or_xml)
23
+ module Plist
24
+ class << self
25
+ # Note that I don't use these two elements much:
26
+ #
27
+ # + Date elements are returned as DateTime objects.
28
+ # + Data elements are implemented as Tempfiles
29
+ #
30
+ # Plist.parse_xml will blow up if it encounters a Date element.
31
+ # If you encounter such an error, or if you have a Date element which
32
+ # can't be parsed into a Time object, please create an issue
33
+ # attaching your plist file at https://github.com/patsplat/plist/issues
34
+ # so folks can implement the proper support.
35
+ def parse_xml(filename_or_xml); end
36
+ end
37
+ end
38
+
39
+ # === Create a plist
40
+ # You can dump an object to a plist in one of two ways:
41
+ #
42
+ # * <tt>Plist::Emit.dump(obj)</tt>
43
+ # * <tt>obj.to_plist</tt>
44
+ # * This requires that you mixin the <tt>Plist::Emit</tt> module, which is already done for +Array+ and +Hash+.
45
+ #
46
+ # The following Ruby classes are converted into native plist types:
47
+ # Array, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time, true, false
48
+ # * +Array+ and +Hash+ are both recursive; their elements will be converted into plist nodes inside the <array> and <dict> containers (respectively).
49
+ # * +IO+ (and its descendants) and +StringIO+ objects are read from and their contents placed in a <data> element.
50
+ # * User classes may implement +to_plist_node+ to dictate how they should be serialized; otherwise the object will be passed to <tt>Marshal.dump</tt> and the result placed in a <data> element.
51
+ #
52
+ # For detailed usage instructions, refer to USAGE[link:files/docs/USAGE.html] and the methods documented below.
53
+ module Plist::Emit
54
+ # Helper method for injecting into classes. Calls <tt>Plist::Emit.save_plist</tt> with +self+.
55
+ def save_plist(filename, options = T.unsafe(nil)); end
56
+
57
+ # Helper method for injecting into classes. Calls <tt>Plist::Emit.dump</tt> with +self+.
58
+ def to_plist(envelope = T.unsafe(nil), options = T.unsafe(nil)); end
59
+
60
+ class << self
61
+ # The following Ruby classes are converted into native plist types:
62
+ # Array, Bignum, Date, DateTime, Fixnum, Float, Hash, Integer, String, Symbol, Time
63
+ #
64
+ # Write us (via RubyForge) if you think another class can be coerced safely into one of the expected plist classes.
65
+ #
66
+ # +IO+ and +StringIO+ objects are encoded and placed in <data> elements; other objects are <tt>Marshal.dump</tt>'ed unless they implement +to_plist_node+.
67
+ #
68
+ # The +envelope+ parameters dictates whether or not the resultant plist fragment is wrapped in the normal XML/plist header and footer. Set it to false if you only want the fragment.
69
+ def dump(obj, envelope = T.unsafe(nil), options = T.unsafe(nil)); end
70
+
71
+ # Writes the serialized object's plist to the specified filename.
72
+ def save_plist(obj, filename, options = T.unsafe(nil)); end
73
+
74
+ def wrap(contents); end
75
+ end
76
+ end
77
+
78
+ Plist::Emit::DEFAULT_INDENT = T.let(T.unsafe(nil), String)
79
+
80
+ class Plist::Emit::PlistBuilder
81
+ # @return [PlistBuilder] a new instance of PlistBuilder
82
+ def initialize(indent_str); end
83
+
84
+ def build(element, level = T.unsafe(nil)); end
85
+
86
+ private
87
+
88
+ def comment_tag(content); end
89
+ def data_tag(data, level); end
90
+ def element_type(item); end
91
+ def indent(str, level); end
92
+ def tag(type, contents, level, &block); end
93
+ end
94
+
95
+ class Plist::Listener
96
+ # @return [Listener] a new instance of Listener
97
+ def initialize; end
98
+
99
+ # include REXML::StreamListener
100
+ def open; end
101
+
102
+ # include REXML::StreamListener
103
+ def open=(_arg0); end
104
+
105
+ # include REXML::StreamListener
106
+ def result; end
107
+
108
+ # include REXML::StreamListener
109
+ def result=(_arg0); end
110
+
111
+ def tag_end(name); end
112
+ def tag_start(name, attributes); end
113
+ def text(contents); end
114
+ end
115
+
116
+ class Plist::PArray < ::Plist::PTag
117
+ def to_ruby; end
118
+ end
119
+
120
+ class Plist::PData < ::Plist::PTag
121
+ def to_ruby; end
122
+ end
123
+
124
+ class Plist::PDate < ::Plist::PTag
125
+ def to_ruby; end
126
+ end
127
+
128
+ class Plist::PDict < ::Plist::PTag
129
+ def to_ruby; end
130
+ end
131
+
132
+ class Plist::PFalse < ::Plist::PTag
133
+ def to_ruby; end
134
+ end
135
+
136
+ class Plist::PInteger < ::Plist::PTag
137
+ def to_ruby; end
138
+ end
139
+
140
+ class Plist::PKey < ::Plist::PTag
141
+ def to_ruby; end
142
+ end
143
+
144
+ class Plist::PList < ::Plist::PTag
145
+ def to_ruby; end
146
+ end
147
+
148
+ class Plist::PReal < ::Plist::PTag
149
+ def to_ruby; end
150
+ end
151
+
152
+ class Plist::PString < ::Plist::PTag
153
+ def to_ruby; end
154
+ end
155
+
156
+ class Plist::PTag
157
+ # @return [PTag] a new instance of PTag
158
+ def initialize; end
159
+
160
+ # Returns the value of attribute children.
161
+ def children; end
162
+
163
+ # Sets the attribute children
164
+ #
165
+ # @param value the value to set the attribute children to.
166
+ def children=(_arg0); end
167
+
168
+ # Returns the value of attribute text.
169
+ def text; end
170
+
171
+ # Sets the attribute text
172
+ #
173
+ # @param value the value to set the attribute text to.
174
+ def text=(_arg0); end
175
+
176
+ def to_ruby; end
177
+
178
+ class << self
179
+ # @private
180
+ def inherited(sub_class); end
181
+
182
+ def mappings; end
183
+ end
184
+ end
185
+
186
+ class Plist::PTrue < ::Plist::PTag
187
+ def to_ruby; end
188
+ end
189
+
190
+ class Plist::StreamParser
191
+ # @return [StreamParser] a new instance of StreamParser
192
+ def initialize(plist_data_or_file, listener); end
193
+
194
+ def parse; end
195
+
196
+ private
197
+
198
+ def parse_encoding_from_xml_declaration(xml_declaration); end
199
+ end
200
+
201
+ Plist::StreamParser::CDATA = T.let(T.unsafe(nil), Regexp)
202
+ Plist::StreamParser::COMMENT_END = T.let(T.unsafe(nil), Regexp)
203
+ Plist::StreamParser::COMMENT_START = T.let(T.unsafe(nil), Regexp)
204
+ Plist::StreamParser::DOCTYPE_PATTERN = T.let(T.unsafe(nil), Regexp)
205
+ Plist::StreamParser::TEXT = T.let(T.unsafe(nil), Regexp)
206
+ Plist::StreamParser::UNIMPLEMENTED_ERROR = T.let(T.unsafe(nil), String)
207
+ Plist::StreamParser::XMLDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
208
+
209
+ # Raised when an element is not implemented
210
+ class Plist::UnimplementedElementError < ::RuntimeError; end
211
+
212
+ Plist::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `pry` gem.
5
+ # Please instead update this file by running `bin/tapioca gem pry`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
@@ -0,0 +1,452 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rainbow` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rainbow`.
6
+
7
+ # source://rainbow-3.1.1/lib/rainbow/string_utils.rb:3
8
+ module Rainbow
9
+ class << self
10
+ # source://rainbow-3.1.1/lib/rainbow/global.rb:10
11
+ def enabled; end
12
+
13
+ # source://rainbow-3.1.1/lib/rainbow/global.rb:14
14
+ def enabled=(value)
15
+ ;
16
+ end
17
+
18
+ # source://rainbow-3.1.1/lib/rainbow/global.rb:6
19
+ def global; end
20
+
21
+ # source://rainbow-3.1.1/lib/rainbow.rb:6
22
+ def new; end
23
+
24
+ # source://rainbow-3.1.1/lib/rainbow/global.rb:18
25
+ def uncolor(string)
26
+ ;
27
+ end
28
+ end
29
+ end
30
+
31
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:4
32
+ class Rainbow::Color
33
+ # Returns the value of attribute ground.
34
+ #
35
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:5
36
+ def ground; end
37
+
38
+ class << self
39
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:7
40
+ def build(ground, values)
41
+ ;
42
+ end
43
+
44
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:40
45
+ def parse_hex_color(hex)
46
+ ;
47
+ end
48
+ end
49
+ end
50
+
51
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:54
52
+ class Rainbow::Color::Indexed < ::Rainbow::Color
53
+ # @return [Indexed] a new instance of Indexed
54
+ #
55
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:57
56
+ def initialize(ground, num)
57
+ ;
58
+ end
59
+
60
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:62
61
+ def codes; end
62
+
63
+ # Returns the value of attribute num.
64
+ #
65
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:55
66
+ def num; end
67
+ end
68
+
69
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:69
70
+ class Rainbow::Color::Named < ::Rainbow::Color::Indexed
71
+ # @return [Named] a new instance of Named
72
+ #
73
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:90
74
+ def initialize(ground, name)
75
+ ;
76
+ end
77
+
78
+ class << self
79
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:82
80
+ def color_names; end
81
+
82
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:86
83
+ def valid_names; end
84
+ end
85
+ end
86
+
87
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:70
88
+ Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
89
+
90
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:100
91
+ class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
92
+ # @return [RGB] a new instance of RGB
93
+ #
94
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:107
95
+ def initialize(ground, *values)
96
+ ;
97
+ end
98
+
99
+ # Returns the value of attribute b.
100
+ #
101
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:101
102
+ def b; end
103
+
104
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:116
105
+ def codes; end
106
+
107
+ # Returns the value of attribute g.
108
+ #
109
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:101
110
+ def g; end
111
+
112
+ # Returns the value of attribute r.
113
+ #
114
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:101
115
+ def r; end
116
+
117
+ private
118
+
119
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:122
120
+ def code_from_rgb; end
121
+
122
+ class << self
123
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:103
124
+ def to_ansi_domain(value)
125
+ ;
126
+ end
127
+ end
128
+ end
129
+
130
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:129
131
+ class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
132
+ include ::Rainbow::X11ColorNames
133
+
134
+ # @return [X11Named] a new instance of X11Named
135
+ #
136
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:140
137
+ def initialize(ground, name)
138
+ ;
139
+ end
140
+
141
+ class << self
142
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:132
143
+ def color_names; end
144
+
145
+ # source://rainbow-3.1.1/lib/rainbow/color.rb:136
146
+ def valid_names; end
147
+ end
148
+ end
149
+
150
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:4
151
+ class Rainbow::NullPresenter < ::String
152
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:9
153
+ def background(*_values)
154
+ ;
155
+ end
156
+
157
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:9
158
+ def bg(*_values)
159
+ ;
160
+ end
161
+
162
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:49
163
+ def black; end
164
+
165
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:33
166
+ def blink; end
167
+
168
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:65
169
+ def blue; end
170
+
171
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:17
172
+ def bold; end
173
+
174
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:17
175
+ def bright; end
176
+
177
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:5
178
+ def color(*_values)
179
+ ;
180
+ end
181
+
182
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:45
183
+ def cross_out; end
184
+
185
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:73
186
+ def cyan; end
187
+
188
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:21
189
+ def dark; end
190
+
191
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:21
192
+ def faint; end
193
+
194
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:5
195
+ def fg(*_values)
196
+ ;
197
+ end
198
+
199
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:5
200
+ def foreground(*_values)
201
+ ;
202
+ end
203
+
204
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:57
205
+ def green; end
206
+
207
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:41
208
+ def hide; end
209
+
210
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:37
211
+ def inverse; end
212
+
213
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:25
214
+ def italic; end
215
+
216
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:69
217
+ def magenta; end
218
+
219
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:81
220
+ def method_missing(method_name, *args)
221
+ ;
222
+ end
223
+
224
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:53
225
+ def red; end
226
+
227
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:13
228
+ def reset; end
229
+
230
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:45
231
+ def strike; end
232
+
233
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:29
234
+ def underline; end
235
+
236
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:77
237
+ def white; end
238
+
239
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:61
240
+ def yellow; end
241
+
242
+ private
243
+
244
+ # @return [Boolean]
245
+ #
246
+ # source://rainbow-3.1.1/lib/rainbow/null_presenter.rb:89
247
+ def respond_to_missing?(method_name, *args)
248
+ ;
249
+ end
250
+ end
251
+
252
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:8
253
+ class Rainbow::Presenter < ::String
254
+ # Sets background color of this text.
255
+ #
256
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:30
257
+ def background(*values)
258
+ ;
259
+ end
260
+
261
+ # Sets background color of this text.
262
+ #
263
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:30
264
+ def bg(*values)
265
+ ;
266
+ end
267
+
268
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:92
269
+ def black; end
270
+
271
+ # Turns on blinking attribute for this text (not well supported by terminal
272
+ # emulators).
273
+ #
274
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:72
275
+ def blink; end
276
+
277
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:108
278
+ def blue; end
279
+
280
+ # Turns on bright/bold for this text.
281
+ #
282
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:45
283
+ def bold; end
284
+
285
+ # Turns on bright/bold for this text.
286
+ #
287
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:45
288
+ def bright; end
289
+
290
+ # Sets color of this text.
291
+ #
292
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:22
293
+ def color(*values)
294
+ ;
295
+ end
296
+
297
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:86
298
+ def cross_out; end
299
+
300
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:116
301
+ def cyan; end
302
+
303
+ # Turns on faint/dark for this text (not well supported by terminal
304
+ # emulators).
305
+ #
306
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:53
307
+ def dark; end
308
+
309
+ # Turns on faint/dark for this text (not well supported by terminal
310
+ # emulators).
311
+ #
312
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:53
313
+ def faint; end
314
+
315
+ # Sets color of this text.
316
+ #
317
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:22
318
+ def fg(*values)
319
+ ;
320
+ end
321
+
322
+ # Sets color of this text.
323
+ #
324
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:22
325
+ def foreground(*values)
326
+ ;
327
+ end
328
+
329
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:100
330
+ def green; end
331
+
332
+ # Hides this text (set its color to the same as background).
333
+ #
334
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:82
335
+ def hide; end
336
+
337
+ # Inverses current foreground/background colors.
338
+ #
339
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:77
340
+ def inverse; end
341
+
342
+ # Turns on italic style for this text (not well supported by terminal
343
+ # emulators).
344
+ #
345
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:61
346
+ def italic; end
347
+
348
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:112
349
+ def magenta; end
350
+
351
+ # We take care of X11 color method call here.
352
+ # Such as #aqua, #ghostwhite.
353
+ #
354
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:126
355
+ def method_missing(method_name, *args)
356
+ ;
357
+ end
358
+
359
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:96
360
+ def red; end
361
+
362
+ # Resets terminal to default colors/backgrounds.
363
+ #
364
+ # It shouldn't be needed to use this method because all methods
365
+ # append terminal reset code to end of string.
366
+ #
367
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:40
368
+ def reset; end
369
+
370
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:86
371
+ def strike; end
372
+
373
+ # Turns on underline decoration for this text.
374
+ #
375
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:66
376
+ def underline; end
377
+
378
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:120
379
+ def white; end
380
+
381
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:104
382
+ def yellow; end
383
+
384
+ private
385
+
386
+ # @return [Boolean]
387
+ #
388
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:134
389
+ def respond_to_missing?(method_name, *args)
390
+ ;
391
+ end
392
+
393
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:140
394
+ def wrap_with_sgr(codes)
395
+ ;
396
+ end
397
+ end
398
+
399
+ # source://rainbow-3.1.1/lib/rainbow/presenter.rb:9
400
+ Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
401
+
402
+ # source://rainbow-3.1.1/lib/rainbow/string_utils.rb:4
403
+ class Rainbow::StringUtils
404
+ class << self
405
+ # source://rainbow-3.1.1/lib/rainbow/string_utils.rb:17
406
+ def uncolor(string)
407
+ ;
408
+ end
409
+
410
+ # source://rainbow-3.1.1/lib/rainbow/string_utils.rb:5
411
+ def wrap_with_sgr(string, codes)
412
+ ;
413
+ end
414
+ end
415
+ end
416
+
417
+ # source://rainbow-3.1.1/lib/rainbow/wrapper.rb:7
418
+ class Rainbow::Wrapper
419
+ # @return [Wrapper] a new instance of Wrapper
420
+ #
421
+ # source://rainbow-3.1.1/lib/rainbow/wrapper.rb:10
422
+ def initialize(enabled = T.unsafe(nil))
423
+ ;
424
+ end
425
+
426
+ # Returns the value of attribute enabled.
427
+ #
428
+ # source://rainbow-3.1.1/lib/rainbow/wrapper.rb:8
429
+ def enabled; end
430
+
431
+ # Sets the attribute enabled
432
+ #
433
+ # @param value the value to set the attribute enabled to.
434
+ #
435
+ # source://rainbow-3.1.1/lib/rainbow/wrapper.rb:8
436
+ def enabled=(_arg0)
437
+ ;
438
+ end
439
+
440
+ # source://rainbow-3.1.1/lib/rainbow/wrapper.rb:14
441
+ def wrap(string)
442
+ ;
443
+ end
444
+ end
445
+
446
+ # source://rainbow-3.1.1/lib/rainbow/x11_color_names.rb:4
447
+ module Rainbow::X11ColorNames
448
+ ;
449
+ end
450
+
451
+ # source://rainbow-3.1.1/lib/rainbow/x11_color_names.rb:5
452
+ Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)