model-to-schema 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +20 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +13 -0
- data/LICENSE.txt +21 -0
- data/README.md +111 -0
- data/Rakefile +12 -0
- data/esquema.gemspec +38 -0
- data/lib/esquema/builder.rb +155 -0
- data/lib/esquema/configuration.rb +34 -0
- data/lib/esquema/keyword_validator.rb +98 -0
- data/lib/esquema/model.rb +31 -0
- data/lib/esquema/property.rb +238 -0
- data/lib/esquema/schema_enhancer.rb +90 -0
- data/lib/esquema/type_caster.rb +53 -0
- data/lib/esquema/version.rb +5 -0
- data/lib/esquema/virtual_column.rb +46 -0
- data/lib/esquema.rb +14 -0
- data/lib/generators/esquema/install/install_generator.rb +16 -0
- data/lib/generators/esquema/install/templates/esquema_initializer.rb +22 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activemodel.rbi +89 -0
- data/sorbet/rbi/annotations/activerecord.rbi +92 -0
- data/sorbet/rbi/annotations/activesupport.rbi +421 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/activemodel@7.1.3.rbi +8 -0
- data/sorbet/rbi/gems/activerecord@7.1.3.rbi +8 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.rbi +192 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +8 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.6.rbi +8 -0
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +8 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1130 -0
- data/sorbet/rbi/gems/drb@2.2.0.rbi +1272 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1553 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
- data/sorbet/rbi/gems/minitest@5.22.2.rbi +8 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10075 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +157 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rspec-core@3.13.0.rbi +10978 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +8153 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.0.rbi +5340 -0
- data/sorbet/rbi/gems/rspec-support@3.13.0.rbi +1629 -0
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7006 -0
- data/sorbet/rbi/gems/rubocop@1.60.2.rbi +57383 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/sqlite3@1.7.2.rbi +1691 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
- data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3510 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/timeout@0.4.1.rbi +142 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/rbi/todo.rbi +20 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +176 -0
@@ -0,0 +1,157 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `racc` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem racc`.
|
6
|
+
|
7
|
+
# source://racc//lib/racc/parser.rb#23
|
8
|
+
ParseError = Racc::ParseError
|
9
|
+
|
10
|
+
# source://racc//lib/racc/info.rb#17
|
11
|
+
Racc::Copyright = T.let(T.unsafe(nil), String)
|
12
|
+
|
13
|
+
# source://racc//lib/racc/parser.rb#188
|
14
|
+
class Racc::Parser
|
15
|
+
# source://racc//lib/racc/parser.rb#283
|
16
|
+
def _racc_do_parse_rb(arg, in_debug); end
|
17
|
+
|
18
|
+
# source://racc//lib/racc/parser.rb#483
|
19
|
+
def _racc_do_reduce(arg, act); end
|
20
|
+
|
21
|
+
# common
|
22
|
+
#
|
23
|
+
# source://racc//lib/racc/parser.rb#386
|
24
|
+
def _racc_evalact(act, arg); end
|
25
|
+
|
26
|
+
# source://racc//lib/racc/parser.rb#236
|
27
|
+
def _racc_init_sysvars; end
|
28
|
+
|
29
|
+
# source://racc//lib/racc/parser.rb#224
|
30
|
+
def _racc_setup; end
|
31
|
+
|
32
|
+
# source://racc//lib/racc/parser.rb#333
|
33
|
+
def _racc_yyparse_rb(recv, mid, arg, c_debug); end
|
34
|
+
|
35
|
+
# source://racc//lib/racc/parser.rb#266
|
36
|
+
def do_parse; end
|
37
|
+
|
38
|
+
# The method to fetch next token.
|
39
|
+
# If you use #do_parse method, you must implement #next_token.
|
40
|
+
#
|
41
|
+
# The format of return value is [TOKEN_SYMBOL, VALUE].
|
42
|
+
# +token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
|
43
|
+
# for 'IDENT'. ";" (String) for ';'.
|
44
|
+
#
|
45
|
+
# The final symbol (End of file) must be false.
|
46
|
+
#
|
47
|
+
# @raise [NotImplementedError]
|
48
|
+
#
|
49
|
+
# source://racc//lib/racc/parser.rb#279
|
50
|
+
def next_token; end
|
51
|
+
|
52
|
+
# This method is called when a parse error is found.
|
53
|
+
#
|
54
|
+
# ERROR_TOKEN_ID is an internal ID of token which caused error.
|
55
|
+
# You can get string representation of this ID by calling
|
56
|
+
# #token_to_str.
|
57
|
+
#
|
58
|
+
# ERROR_VALUE is a value of error token.
|
59
|
+
#
|
60
|
+
# value_stack is a stack of symbol values.
|
61
|
+
# DO NOT MODIFY this object.
|
62
|
+
#
|
63
|
+
# This method raises ParseError by default.
|
64
|
+
#
|
65
|
+
# If this method returns, parsers enter "error recovering mode".
|
66
|
+
#
|
67
|
+
# @raise [ParseError]
|
68
|
+
#
|
69
|
+
# source://racc//lib/racc/parser.rb#539
|
70
|
+
def on_error(t, val, vstack); end
|
71
|
+
|
72
|
+
# source://racc//lib/racc/parser.rb#588
|
73
|
+
def racc_accept; end
|
74
|
+
|
75
|
+
# source://racc//lib/racc/parser.rb#593
|
76
|
+
def racc_e_pop(state, tstack, vstack); end
|
77
|
+
|
78
|
+
# source://racc//lib/racc/parser.rb#600
|
79
|
+
def racc_next_state(curstate, state); end
|
80
|
+
|
81
|
+
# source://racc//lib/racc/parser.rb#606
|
82
|
+
def racc_print_stacks(t, v); end
|
83
|
+
|
84
|
+
# source://racc//lib/racc/parser.rb#615
|
85
|
+
def racc_print_states(s); end
|
86
|
+
|
87
|
+
# For debugging output
|
88
|
+
#
|
89
|
+
# source://racc//lib/racc/parser.rb#562
|
90
|
+
def racc_read_token(t, tok, val); end
|
91
|
+
|
92
|
+
# source://racc//lib/racc/parser.rb#575
|
93
|
+
def racc_reduce(toks, sim, tstack, vstack); end
|
94
|
+
|
95
|
+
# source://racc//lib/racc/parser.rb#569
|
96
|
+
def racc_shift(tok, tstack, vstack); end
|
97
|
+
|
98
|
+
# source://racc//lib/racc/parser.rb#622
|
99
|
+
def racc_token2str(tok); end
|
100
|
+
|
101
|
+
# Convert internal ID of token symbol to the string.
|
102
|
+
#
|
103
|
+
# source://racc//lib/racc/parser.rb#628
|
104
|
+
def token_to_str(t); end
|
105
|
+
|
106
|
+
# Exit parser.
|
107
|
+
# Return value is +Symbol_Value_Stack[0]+.
|
108
|
+
#
|
109
|
+
# source://racc//lib/racc/parser.rb#552
|
110
|
+
def yyaccept; end
|
111
|
+
|
112
|
+
# Leave error recovering mode.
|
113
|
+
#
|
114
|
+
# source://racc//lib/racc/parser.rb#557
|
115
|
+
def yyerrok; end
|
116
|
+
|
117
|
+
# Enter error recovering mode.
|
118
|
+
# This method does not call #on_error.
|
119
|
+
#
|
120
|
+
# source://racc//lib/racc/parser.rb#546
|
121
|
+
def yyerror; end
|
122
|
+
|
123
|
+
# source://racc//lib/racc/parser.rb#328
|
124
|
+
def yyparse(recv, mid); end
|
125
|
+
|
126
|
+
class << self
|
127
|
+
# source://racc//lib/racc/parser.rb#220
|
128
|
+
def racc_runtime_type; end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# source://racc//lib/racc/parser.rb#209
|
133
|
+
Racc::Parser::Racc_Main_Parsing_Routine = T.let(T.unsafe(nil), Symbol)
|
134
|
+
|
135
|
+
# source://racc//lib/racc/parser.rb#211
|
136
|
+
Racc::Parser::Racc_Runtime_Core_Version = T.let(T.unsafe(nil), String)
|
137
|
+
|
138
|
+
# source://racc//lib/racc/parser.rb#191
|
139
|
+
Racc::Parser::Racc_Runtime_Core_Version_R = T.let(T.unsafe(nil), String)
|
140
|
+
|
141
|
+
# source://racc//lib/racc/parser.rb#212
|
142
|
+
Racc::Parser::Racc_Runtime_Type = T.let(T.unsafe(nil), String)
|
143
|
+
|
144
|
+
# source://racc//lib/racc/parser.rb#190
|
145
|
+
Racc::Parser::Racc_Runtime_Version = T.let(T.unsafe(nil), String)
|
146
|
+
|
147
|
+
# source://racc//lib/racc/parser.rb#210
|
148
|
+
Racc::Parser::Racc_YY_Parse_Method = T.let(T.unsafe(nil), Symbol)
|
149
|
+
|
150
|
+
# source://racc//lib/racc/parser.rb#185
|
151
|
+
Racc::Racc_No_Extensions = T.let(T.unsafe(nil), FalseClass)
|
152
|
+
|
153
|
+
# source://racc//lib/racc/info.rb#15
|
154
|
+
Racc::VERSION = T.let(T.unsafe(nil), String)
|
155
|
+
|
156
|
+
# source://racc//lib/racc/info.rb#16
|
157
|
+
Racc::Version = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,402 @@
|
|
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
|
+
class Object < ::BasicObject
|
8
|
+
include ::Kernel
|
9
|
+
include ::PP::ObjectMixin
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
# source://rainbow//lib/rainbow/global.rb#23
|
14
|
+
def Rainbow(string); end
|
15
|
+
end
|
16
|
+
|
17
|
+
# source://rainbow//lib/rainbow/string_utils.rb#3
|
18
|
+
module Rainbow
|
19
|
+
class << self
|
20
|
+
# source://rainbow//lib/rainbow/global.rb#10
|
21
|
+
def enabled; end
|
22
|
+
|
23
|
+
# source://rainbow//lib/rainbow/global.rb#14
|
24
|
+
def enabled=(value); end
|
25
|
+
|
26
|
+
# source://rainbow//lib/rainbow/global.rb#6
|
27
|
+
def global; end
|
28
|
+
|
29
|
+
# source://rainbow//lib/rainbow.rb#6
|
30
|
+
def new; end
|
31
|
+
|
32
|
+
# source://rainbow//lib/rainbow/global.rb#18
|
33
|
+
def uncolor(string); end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# source://rainbow//lib/rainbow/color.rb#4
|
38
|
+
class Rainbow::Color
|
39
|
+
# Returns the value of attribute ground.
|
40
|
+
#
|
41
|
+
# source://rainbow//lib/rainbow/color.rb#5
|
42
|
+
def ground; end
|
43
|
+
|
44
|
+
class << self
|
45
|
+
# source://rainbow//lib/rainbow/color.rb#7
|
46
|
+
def build(ground, values); end
|
47
|
+
|
48
|
+
# source://rainbow//lib/rainbow/color.rb#40
|
49
|
+
def parse_hex_color(hex); end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# source://rainbow//lib/rainbow/color.rb#54
|
54
|
+
class Rainbow::Color::Indexed < ::Rainbow::Color
|
55
|
+
# @return [Indexed] a new instance of Indexed
|
56
|
+
#
|
57
|
+
# source://rainbow//lib/rainbow/color.rb#57
|
58
|
+
def initialize(ground, num); end
|
59
|
+
|
60
|
+
# source://rainbow//lib/rainbow/color.rb#62
|
61
|
+
def codes; end
|
62
|
+
|
63
|
+
# Returns the value of attribute num.
|
64
|
+
#
|
65
|
+
# source://rainbow//lib/rainbow/color.rb#55
|
66
|
+
def num; end
|
67
|
+
end
|
68
|
+
|
69
|
+
# source://rainbow//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//lib/rainbow/color.rb#90
|
74
|
+
def initialize(ground, name); end
|
75
|
+
|
76
|
+
class << self
|
77
|
+
# source://rainbow//lib/rainbow/color.rb#82
|
78
|
+
def color_names; end
|
79
|
+
|
80
|
+
# source://rainbow//lib/rainbow/color.rb#86
|
81
|
+
def valid_names; end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# source://rainbow//lib/rainbow/color.rb#70
|
86
|
+
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
87
|
+
|
88
|
+
# source://rainbow//lib/rainbow/color.rb#100
|
89
|
+
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
90
|
+
# @return [RGB] a new instance of RGB
|
91
|
+
#
|
92
|
+
# source://rainbow//lib/rainbow/color.rb#107
|
93
|
+
def initialize(ground, *values); end
|
94
|
+
|
95
|
+
# Returns the value of attribute b.
|
96
|
+
#
|
97
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
98
|
+
def b; end
|
99
|
+
|
100
|
+
# source://rainbow//lib/rainbow/color.rb#116
|
101
|
+
def codes; end
|
102
|
+
|
103
|
+
# Returns the value of attribute g.
|
104
|
+
#
|
105
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
106
|
+
def g; end
|
107
|
+
|
108
|
+
# Returns the value of attribute r.
|
109
|
+
#
|
110
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
111
|
+
def r; end
|
112
|
+
|
113
|
+
private
|
114
|
+
|
115
|
+
# source://rainbow//lib/rainbow/color.rb#122
|
116
|
+
def code_from_rgb; end
|
117
|
+
|
118
|
+
class << self
|
119
|
+
# source://rainbow//lib/rainbow/color.rb#103
|
120
|
+
def to_ansi_domain(value); end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# source://rainbow//lib/rainbow/color.rb#129
|
125
|
+
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
126
|
+
include ::Rainbow::X11ColorNames
|
127
|
+
|
128
|
+
# @return [X11Named] a new instance of X11Named
|
129
|
+
#
|
130
|
+
# source://rainbow//lib/rainbow/color.rb#140
|
131
|
+
def initialize(ground, name); end
|
132
|
+
|
133
|
+
class << self
|
134
|
+
# source://rainbow//lib/rainbow/color.rb#132
|
135
|
+
def color_names; end
|
136
|
+
|
137
|
+
# source://rainbow//lib/rainbow/color.rb#136
|
138
|
+
def valid_names; end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#4
|
143
|
+
class Rainbow::NullPresenter < ::String
|
144
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
145
|
+
def background(*_values); end
|
146
|
+
|
147
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
148
|
+
def bg(*_values); end
|
149
|
+
|
150
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#49
|
151
|
+
def black; end
|
152
|
+
|
153
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#33
|
154
|
+
def blink; end
|
155
|
+
|
156
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#65
|
157
|
+
def blue; end
|
158
|
+
|
159
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
160
|
+
def bold; end
|
161
|
+
|
162
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
163
|
+
def bright; end
|
164
|
+
|
165
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
166
|
+
def color(*_values); end
|
167
|
+
|
168
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
169
|
+
def cross_out; end
|
170
|
+
|
171
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#73
|
172
|
+
def cyan; end
|
173
|
+
|
174
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
175
|
+
def dark; end
|
176
|
+
|
177
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
178
|
+
def faint; end
|
179
|
+
|
180
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
181
|
+
def fg(*_values); end
|
182
|
+
|
183
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
184
|
+
def foreground(*_values); end
|
185
|
+
|
186
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#57
|
187
|
+
def green; end
|
188
|
+
|
189
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#41
|
190
|
+
def hide; end
|
191
|
+
|
192
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#37
|
193
|
+
def inverse; end
|
194
|
+
|
195
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#25
|
196
|
+
def italic; end
|
197
|
+
|
198
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#69
|
199
|
+
def magenta; end
|
200
|
+
|
201
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#81
|
202
|
+
def method_missing(method_name, *args); end
|
203
|
+
|
204
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#53
|
205
|
+
def red; end
|
206
|
+
|
207
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#13
|
208
|
+
def reset; end
|
209
|
+
|
210
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
211
|
+
def strike; end
|
212
|
+
|
213
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#29
|
214
|
+
def underline; end
|
215
|
+
|
216
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#77
|
217
|
+
def white; end
|
218
|
+
|
219
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#61
|
220
|
+
def yellow; end
|
221
|
+
|
222
|
+
private
|
223
|
+
|
224
|
+
# @return [Boolean]
|
225
|
+
#
|
226
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#89
|
227
|
+
def respond_to_missing?(method_name, *args); end
|
228
|
+
end
|
229
|
+
|
230
|
+
# source://rainbow//lib/rainbow/presenter.rb#8
|
231
|
+
class Rainbow::Presenter < ::String
|
232
|
+
# Sets background color of this text.
|
233
|
+
#
|
234
|
+
# source://rainbow//lib/rainbow/presenter.rb#30
|
235
|
+
def background(*values); end
|
236
|
+
|
237
|
+
# Sets background color of this text.
|
238
|
+
#
|
239
|
+
# source://rainbow//lib/rainbow/presenter.rb#30
|
240
|
+
def bg(*values); end
|
241
|
+
|
242
|
+
# source://rainbow//lib/rainbow/presenter.rb#92
|
243
|
+
def black; end
|
244
|
+
|
245
|
+
# Turns on blinking attribute for this text (not well supported by terminal
|
246
|
+
# emulators).
|
247
|
+
#
|
248
|
+
# source://rainbow//lib/rainbow/presenter.rb#72
|
249
|
+
def blink; end
|
250
|
+
|
251
|
+
# source://rainbow//lib/rainbow/presenter.rb#108
|
252
|
+
def blue; end
|
253
|
+
|
254
|
+
# Turns on bright/bold for this text.
|
255
|
+
#
|
256
|
+
# source://rainbow//lib/rainbow/presenter.rb#45
|
257
|
+
def bold; end
|
258
|
+
|
259
|
+
# Turns on bright/bold for this text.
|
260
|
+
#
|
261
|
+
# source://rainbow//lib/rainbow/presenter.rb#45
|
262
|
+
def bright; end
|
263
|
+
|
264
|
+
# Sets color of this text.
|
265
|
+
#
|
266
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
267
|
+
def color(*values); end
|
268
|
+
|
269
|
+
# source://rainbow//lib/rainbow/presenter.rb#86
|
270
|
+
def cross_out; end
|
271
|
+
|
272
|
+
# source://rainbow//lib/rainbow/presenter.rb#116
|
273
|
+
def cyan; end
|
274
|
+
|
275
|
+
# Turns on faint/dark for this text (not well supported by terminal
|
276
|
+
# emulators).
|
277
|
+
#
|
278
|
+
# source://rainbow//lib/rainbow/presenter.rb#53
|
279
|
+
def dark; end
|
280
|
+
|
281
|
+
# Turns on faint/dark for this text (not well supported by terminal
|
282
|
+
# emulators).
|
283
|
+
#
|
284
|
+
# source://rainbow//lib/rainbow/presenter.rb#53
|
285
|
+
def faint; end
|
286
|
+
|
287
|
+
# Sets color of this text.
|
288
|
+
#
|
289
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
290
|
+
def fg(*values); end
|
291
|
+
|
292
|
+
# Sets color of this text.
|
293
|
+
#
|
294
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
295
|
+
def foreground(*values); end
|
296
|
+
|
297
|
+
# source://rainbow//lib/rainbow/presenter.rb#100
|
298
|
+
def green; end
|
299
|
+
|
300
|
+
# Hides this text (set its color to the same as background).
|
301
|
+
#
|
302
|
+
# source://rainbow//lib/rainbow/presenter.rb#82
|
303
|
+
def hide; end
|
304
|
+
|
305
|
+
# Inverses current foreground/background colors.
|
306
|
+
#
|
307
|
+
# source://rainbow//lib/rainbow/presenter.rb#77
|
308
|
+
def inverse; end
|
309
|
+
|
310
|
+
# Turns on italic style for this text (not well supported by terminal
|
311
|
+
# emulators).
|
312
|
+
#
|
313
|
+
# source://rainbow//lib/rainbow/presenter.rb#61
|
314
|
+
def italic; end
|
315
|
+
|
316
|
+
# source://rainbow//lib/rainbow/presenter.rb#112
|
317
|
+
def magenta; end
|
318
|
+
|
319
|
+
# We take care of X11 color method call here.
|
320
|
+
# Such as #aqua, #ghostwhite.
|
321
|
+
#
|
322
|
+
# source://rainbow//lib/rainbow/presenter.rb#126
|
323
|
+
def method_missing(method_name, *args); end
|
324
|
+
|
325
|
+
# source://rainbow//lib/rainbow/presenter.rb#96
|
326
|
+
def red; end
|
327
|
+
|
328
|
+
# Resets terminal to default colors/backgrounds.
|
329
|
+
#
|
330
|
+
# It shouldn't be needed to use this method because all methods
|
331
|
+
# append terminal reset code to end of string.
|
332
|
+
#
|
333
|
+
# source://rainbow//lib/rainbow/presenter.rb#40
|
334
|
+
def reset; end
|
335
|
+
|
336
|
+
# source://rainbow//lib/rainbow/presenter.rb#86
|
337
|
+
def strike; end
|
338
|
+
|
339
|
+
# Turns on underline decoration for this text.
|
340
|
+
#
|
341
|
+
# source://rainbow//lib/rainbow/presenter.rb#66
|
342
|
+
def underline; end
|
343
|
+
|
344
|
+
# source://rainbow//lib/rainbow/presenter.rb#120
|
345
|
+
def white; end
|
346
|
+
|
347
|
+
# source://rainbow//lib/rainbow/presenter.rb#104
|
348
|
+
def yellow; end
|
349
|
+
|
350
|
+
private
|
351
|
+
|
352
|
+
# @return [Boolean]
|
353
|
+
#
|
354
|
+
# source://rainbow//lib/rainbow/presenter.rb#134
|
355
|
+
def respond_to_missing?(method_name, *args); end
|
356
|
+
|
357
|
+
# source://rainbow//lib/rainbow/presenter.rb#140
|
358
|
+
def wrap_with_sgr(codes); end
|
359
|
+
end
|
360
|
+
|
361
|
+
# source://rainbow//lib/rainbow/presenter.rb#9
|
362
|
+
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
363
|
+
|
364
|
+
# source://rainbow//lib/rainbow/string_utils.rb#4
|
365
|
+
class Rainbow::StringUtils
|
366
|
+
class << self
|
367
|
+
# source://rainbow//lib/rainbow/string_utils.rb#17
|
368
|
+
def uncolor(string); end
|
369
|
+
|
370
|
+
# source://rainbow//lib/rainbow/string_utils.rb#5
|
371
|
+
def wrap_with_sgr(string, codes); end
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# source://rainbow//lib/rainbow/wrapper.rb#7
|
376
|
+
class Rainbow::Wrapper
|
377
|
+
# @return [Wrapper] a new instance of Wrapper
|
378
|
+
#
|
379
|
+
# source://rainbow//lib/rainbow/wrapper.rb#10
|
380
|
+
def initialize(enabled = T.unsafe(nil)); end
|
381
|
+
|
382
|
+
# Returns the value of attribute enabled.
|
383
|
+
#
|
384
|
+
# source://rainbow//lib/rainbow/wrapper.rb#8
|
385
|
+
def enabled; end
|
386
|
+
|
387
|
+
# Sets the attribute enabled
|
388
|
+
#
|
389
|
+
# @param value the value to set the attribute enabled to.
|
390
|
+
#
|
391
|
+
# source://rainbow//lib/rainbow/wrapper.rb#8
|
392
|
+
def enabled=(_arg0); end
|
393
|
+
|
394
|
+
# source://rainbow//lib/rainbow/wrapper.rb#14
|
395
|
+
def wrap(string); end
|
396
|
+
end
|
397
|
+
|
398
|
+
# source://rainbow//lib/rainbow/x11_color_names.rb#4
|
399
|
+
module Rainbow::X11ColorNames; end
|
400
|
+
|
401
|
+
# source://rainbow//lib/rainbow/x11_color_names.rb#5
|
402
|
+
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|