packwerk 3.2.0 → 3.2.2
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.
- checksums.yaml +4 -4
- data/lib/packwerk/association_inspector.rb +17 -4
- data/lib/packwerk/checker.rb +3 -3
- data/lib/packwerk/configuration.rb +4 -0
- data/lib/packwerk/const_node_inspector.rb +2 -2
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/offenses_formatter.rb +3 -3
- data/lib/packwerk/package.rb +1 -1
- data/lib/packwerk/package_todo.rb +1 -4
- data/lib/packwerk/parsers/factory.rb +3 -3
- data/lib/packwerk/parsers/ruby.rb +7 -0
- data/lib/packwerk/reference_extractor.rb +29 -1
- data/lib/packwerk/reference_offense.rb +1 -1
- data/lib/packwerk/run_context.rb +15 -4
- data/lib/packwerk/validator.rb +3 -3
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
- data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
- data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
- data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
- data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
- data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
- data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
- data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
- data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
- data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
- data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
- data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
- data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
- data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
- data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
- metadata +22 -94
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/pull_request_template.md +0 -28
- data/.github/workflows/ci.yml +0 -93
- data/.github/workflows/cla.yml +0 -22
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -75
- data/.ruby-version +0 -1
- data/CODEOWNERS +0 -1
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -17
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -206
- data/RESOLVING_VIOLATIONS.md +0 -76
- data/Rakefile +0 -22
- data/TROUBLESHOOT.md +0 -44
- data/UPGRADING.md +0 -66
- data/USAGE.md +0 -364
- data/bin/console +0 -15
- data/bin/m +0 -29
- data/bin/rake +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/tapioca +0 -29
- data/dev.yml +0 -32
- data/docs/cohesion.png +0 -0
- data/gemfiles/Gemfile-rails-6-0 +0 -22
- data/gemfiles/Gemfile-rails-6-1 +0 -22
- data/packwerk.gemspec +0 -59
- data/shipit.rubygems.yml +0 -5
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
- data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
- data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
# :required => true
|
|
24
24
|
# @see ClassMethods#property More information on how to configure properties
|
|
25
25
|
#
|
|
26
|
-
# source://smart_properties
|
|
26
|
+
# source://smart_properties//lib/smart_properties.rb#23
|
|
27
27
|
module SmartProperties
|
|
28
28
|
mixes_in_class_methods ::SmartProperties::ClassMethods
|
|
29
29
|
|
|
@@ -36,13 +36,13 @@ module SmartProperties
|
|
|
36
36
|
# @raise [SmartProperties::ConstructorArgumentForwardingError] when unknown arguments were supplied that could not be processed by the super class initializer either.
|
|
37
37
|
# @raise [SmartProperties::InitializationError] when incorrect values were supplied or required values weren't been supplied.
|
|
38
38
|
#
|
|
39
|
-
# source://smart_properties
|
|
39
|
+
# source://smart_properties//lib/smart_properties.rb#127
|
|
40
40
|
def initialize(*args, &block); end
|
|
41
41
|
|
|
42
|
-
# source://smart_properties
|
|
42
|
+
# source://smart_properties//lib/smart_properties.rb#165
|
|
43
43
|
def [](name); end
|
|
44
44
|
|
|
45
|
-
# source://smart_properties
|
|
45
|
+
# source://smart_properties//lib/smart_properties.rb#172
|
|
46
46
|
def []=(name, value); end
|
|
47
47
|
|
|
48
48
|
class << self
|
|
@@ -53,51 +53,51 @@ module SmartProperties
|
|
|
53
53
|
#
|
|
54
54
|
# @param base [Class] the class this module is included in
|
|
55
55
|
#
|
|
56
|
-
# source://smart_properties
|
|
56
|
+
# source://smart_properties//lib/smart_properties.rb#110
|
|
57
57
|
def included(base); end
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
# source://smart_properties
|
|
61
|
+
# source://smart_properties//lib/smart_properties/errors.rb#5
|
|
62
62
|
class SmartProperties::AssignmentError < ::SmartProperties::Error
|
|
63
63
|
# @return [AssignmentError] a new instance of AssignmentError
|
|
64
64
|
#
|
|
65
|
-
# source://smart_properties
|
|
65
|
+
# source://smart_properties//lib/smart_properties/errors.rb#9
|
|
66
66
|
def initialize(sender, property, message); end
|
|
67
67
|
|
|
68
68
|
# Returns the value of attribute property.
|
|
69
69
|
#
|
|
70
|
-
# source://smart_properties
|
|
70
|
+
# source://smart_properties//lib/smart_properties/errors.rb#7
|
|
71
71
|
def property; end
|
|
72
72
|
|
|
73
73
|
# Sets the attribute property
|
|
74
74
|
#
|
|
75
75
|
# @param value the value to set the attribute property to.
|
|
76
76
|
#
|
|
77
|
-
# source://smart_properties
|
|
77
|
+
# source://smart_properties//lib/smart_properties/errors.rb#7
|
|
78
78
|
def property=(_arg0); end
|
|
79
79
|
|
|
80
80
|
# Returns the value of attribute sender.
|
|
81
81
|
#
|
|
82
|
-
# source://smart_properties
|
|
82
|
+
# source://smart_properties//lib/smart_properties/errors.rb#6
|
|
83
83
|
def sender; end
|
|
84
84
|
|
|
85
85
|
# Sets the attribute sender
|
|
86
86
|
#
|
|
87
87
|
# @param value the value to set the attribute sender to.
|
|
88
88
|
#
|
|
89
|
-
# source://smart_properties
|
|
89
|
+
# source://smart_properties//lib/smart_properties/errors.rb#6
|
|
90
90
|
def sender=(_arg0); end
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
# source://smart_properties
|
|
93
|
+
# source://smart_properties//lib/smart_properties.rb#24
|
|
94
94
|
module SmartProperties::ClassMethods
|
|
95
95
|
# Returns a class's smart properties. This includes the properties that
|
|
96
96
|
# have been defined in the parent classes.
|
|
97
97
|
#
|
|
98
98
|
# @return [Hash<String, Property>] A map of property names to property instances.
|
|
99
99
|
#
|
|
100
|
-
# source://smart_properties
|
|
100
|
+
# source://smart_properties//lib/smart_properties.rb#31
|
|
101
101
|
def properties; end
|
|
102
102
|
|
|
103
103
|
protected
|
|
@@ -140,332 +140,332 @@ module SmartProperties::ClassMethods
|
|
|
140
140
|
# @param options [Hash] the list of options used to configure the property
|
|
141
141
|
# @return [Property] The defined property.
|
|
142
142
|
#
|
|
143
|
-
# source://smart_properties
|
|
143
|
+
# source://smart_properties//lib/smart_properties.rb#82
|
|
144
144
|
def property(name, **options); end
|
|
145
145
|
|
|
146
|
-
# source://smart_properties
|
|
146
|
+
# source://smart_properties//lib/smart_properties.rb#87
|
|
147
147
|
def property!(name, **options); end
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
-
# source://smart_properties
|
|
150
|
+
# source://smart_properties//lib/smart_properties/errors.rb#3
|
|
151
151
|
class SmartProperties::ConfigurationError < ::SmartProperties::Error; end
|
|
152
152
|
|
|
153
|
-
# source://smart_properties
|
|
153
|
+
# source://smart_properties//lib/smart_properties/errors.rb#16
|
|
154
154
|
class SmartProperties::ConstructorArgumentForwardingError < ::SmartProperties::Error
|
|
155
155
|
# @return [ConstructorArgumentForwardingError] a new instance of ConstructorArgumentForwardingError
|
|
156
156
|
#
|
|
157
|
-
# source://smart_properties
|
|
157
|
+
# source://smart_properties//lib/smart_properties/errors.rb#17
|
|
158
158
|
def initialize(positional_arguments, keyword_arguments); end
|
|
159
159
|
|
|
160
160
|
private
|
|
161
161
|
|
|
162
|
-
# source://smart_properties
|
|
162
|
+
# source://smart_properties//lib/smart_properties/errors.rb#33
|
|
163
163
|
def generate_description(argument_type, argument_number); end
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
# source://smart_properties
|
|
166
|
+
# source://smart_properties//lib/smart_properties/errors.rb#2
|
|
167
167
|
class SmartProperties::Error < ::ArgumentError; end
|
|
168
168
|
|
|
169
|
-
# source://smart_properties
|
|
169
|
+
# source://smart_properties//lib/smart_properties/errors.rb#95
|
|
170
170
|
class SmartProperties::InitializationError < ::SmartProperties::Error
|
|
171
171
|
# @return [InitializationError] a new instance of InitializationError
|
|
172
172
|
#
|
|
173
|
-
# source://smart_properties
|
|
173
|
+
# source://smart_properties//lib/smart_properties/errors.rb#99
|
|
174
174
|
def initialize(sender, properties); end
|
|
175
175
|
|
|
176
176
|
# Returns the value of attribute properties.
|
|
177
177
|
#
|
|
178
|
-
# source://smart_properties
|
|
178
|
+
# source://smart_properties//lib/smart_properties/errors.rb#97
|
|
179
179
|
def properties; end
|
|
180
180
|
|
|
181
181
|
# Sets the attribute properties
|
|
182
182
|
#
|
|
183
183
|
# @param value the value to set the attribute properties to.
|
|
184
184
|
#
|
|
185
|
-
# source://smart_properties
|
|
185
|
+
# source://smart_properties//lib/smart_properties/errors.rb#97
|
|
186
186
|
def properties=(_arg0); end
|
|
187
187
|
|
|
188
188
|
# Returns the value of attribute sender.
|
|
189
189
|
#
|
|
190
|
-
# source://smart_properties
|
|
190
|
+
# source://smart_properties//lib/smart_properties/errors.rb#96
|
|
191
191
|
def sender; end
|
|
192
192
|
|
|
193
193
|
# Sets the attribute sender
|
|
194
194
|
#
|
|
195
195
|
# @param value the value to set the attribute sender to.
|
|
196
196
|
#
|
|
197
|
-
# source://smart_properties
|
|
197
|
+
# source://smart_properties//lib/smart_properties/errors.rb#96
|
|
198
198
|
def sender=(_arg0); end
|
|
199
199
|
|
|
200
|
-
# source://smart_properties
|
|
200
|
+
# source://smart_properties//lib/smart_properties/errors.rb#110
|
|
201
201
|
def to_hash; end
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
# source://smart_properties
|
|
204
|
+
# source://smart_properties//lib/smart_properties/errors.rb#62
|
|
205
205
|
class SmartProperties::InvalidValueError < ::SmartProperties::AssignmentError
|
|
206
206
|
# @return [InvalidValueError] a new instance of InvalidValueError
|
|
207
207
|
#
|
|
208
|
-
# source://smart_properties
|
|
208
|
+
# source://smart_properties//lib/smart_properties/errors.rb#65
|
|
209
209
|
def initialize(sender, property, value); end
|
|
210
210
|
|
|
211
|
-
# source://smart_properties
|
|
211
|
+
# source://smart_properties//lib/smart_properties/errors.rb#80
|
|
212
212
|
def to_hash; end
|
|
213
213
|
|
|
214
214
|
# Returns the value of attribute value.
|
|
215
215
|
#
|
|
216
|
-
# source://smart_properties
|
|
216
|
+
# source://smart_properties//lib/smart_properties/errors.rb#63
|
|
217
217
|
def value; end
|
|
218
218
|
|
|
219
219
|
# Sets the attribute value
|
|
220
220
|
#
|
|
221
221
|
# @param value the value to set the attribute value to.
|
|
222
222
|
#
|
|
223
|
-
# source://smart_properties
|
|
223
|
+
# source://smart_properties//lib/smart_properties/errors.rb#63
|
|
224
224
|
def value=(_arg0); end
|
|
225
225
|
|
|
226
226
|
private
|
|
227
227
|
|
|
228
|
-
# source://smart_properties
|
|
228
|
+
# source://smart_properties//lib/smart_properties/errors.rb#86
|
|
229
229
|
def accepter_message(sender, property); end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
# source://smart_properties
|
|
232
|
+
# source://smart_properties//lib/smart_properties/errors.rb#45
|
|
233
233
|
class SmartProperties::MissingValueError < ::SmartProperties::AssignmentError
|
|
234
234
|
# @return [MissingValueError] a new instance of MissingValueError
|
|
235
235
|
#
|
|
236
|
-
# source://smart_properties
|
|
236
|
+
# source://smart_properties//lib/smart_properties/errors.rb#46
|
|
237
237
|
def initialize(sender, property); end
|
|
238
238
|
|
|
239
|
-
# source://smart_properties
|
|
239
|
+
# source://smart_properties//lib/smart_properties/errors.rb#57
|
|
240
240
|
def to_hash; end
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
# source://smart_properties
|
|
243
|
+
# source://smart_properties//lib/smart_properties.rb#94
|
|
244
244
|
module SmartProperties::ModuleMethods
|
|
245
|
-
# source://smart_properties
|
|
245
|
+
# source://smart_properties//lib/smart_properties.rb#95
|
|
246
246
|
def included(target); end
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
-
# source://smart_properties
|
|
249
|
+
# source://smart_properties//lib/smart_properties/property.rb#2
|
|
250
250
|
class SmartProperties::Property
|
|
251
251
|
# @return [Property] a new instance of Property
|
|
252
252
|
#
|
|
253
|
-
# source://smart_properties
|
|
253
|
+
# source://smart_properties//lib/smart_properties/property.rb#17
|
|
254
254
|
def initialize(name, **attrs); end
|
|
255
255
|
|
|
256
256
|
# Returns the value of attribute accepter.
|
|
257
257
|
#
|
|
258
|
-
# source://smart_properties
|
|
258
|
+
# source://smart_properties//lib/smart_properties/property.rb#8
|
|
259
259
|
def accepter; end
|
|
260
260
|
|
|
261
261
|
# @return [Boolean]
|
|
262
262
|
#
|
|
263
|
-
# source://smart_properties
|
|
263
|
+
# source://smart_properties//lib/smart_properties/property.rb#78
|
|
264
264
|
def accepts?(value, scope); end
|
|
265
265
|
|
|
266
|
-
# source://smart_properties
|
|
266
|
+
# source://smart_properties//lib/smart_properties/property.rb#62
|
|
267
267
|
def convert(scope, value); end
|
|
268
268
|
|
|
269
269
|
# Returns the value of attribute converter.
|
|
270
270
|
#
|
|
271
|
-
# source://smart_properties
|
|
271
|
+
# source://smart_properties//lib/smart_properties/property.rb#7
|
|
272
272
|
def converter; end
|
|
273
273
|
|
|
274
|
-
# source://smart_properties
|
|
274
|
+
# source://smart_properties//lib/smart_properties/property.rb#74
|
|
275
275
|
def default(scope); end
|
|
276
276
|
|
|
277
|
-
# source://smart_properties
|
|
277
|
+
# source://smart_properties//lib/smart_properties/property.rb#98
|
|
278
278
|
def define(klass); end
|
|
279
279
|
|
|
280
|
-
# source://smart_properties
|
|
280
|
+
# source://smart_properties//lib/smart_properties/property.rb#136
|
|
281
281
|
def get(scope); end
|
|
282
282
|
|
|
283
283
|
# Returns the value of attribute instance_variable_name.
|
|
284
284
|
#
|
|
285
|
-
# source://smart_properties
|
|
285
|
+
# source://smart_properties//lib/smart_properties/property.rb#10
|
|
286
286
|
def instance_variable_name; end
|
|
287
287
|
|
|
288
288
|
# @return [Boolean]
|
|
289
289
|
#
|
|
290
|
-
# source://smart_properties
|
|
290
|
+
# source://smart_properties//lib/smart_properties/property.rb#49
|
|
291
291
|
def missing?(scope); end
|
|
292
292
|
|
|
293
293
|
# Returns the value of attribute name.
|
|
294
294
|
#
|
|
295
|
-
# source://smart_properties
|
|
295
|
+
# source://smart_properties//lib/smart_properties/property.rb#6
|
|
296
296
|
def name; end
|
|
297
297
|
|
|
298
298
|
# @return [Boolean]
|
|
299
299
|
#
|
|
300
|
-
# source://smart_properties
|
|
300
|
+
# source://smart_properties//lib/smart_properties/property.rb#45
|
|
301
301
|
def optional?(scope); end
|
|
302
302
|
|
|
303
303
|
# @raise [MissingValueError]
|
|
304
304
|
#
|
|
305
|
-
# source://smart_properties
|
|
305
|
+
# source://smart_properties//lib/smart_properties/property.rb#89
|
|
306
306
|
def prepare(scope, value); end
|
|
307
307
|
|
|
308
308
|
# @return [Boolean]
|
|
309
309
|
#
|
|
310
|
-
# source://smart_properties
|
|
310
|
+
# source://smart_properties//lib/smart_properties/property.rb#53
|
|
311
311
|
def present?(scope); end
|
|
312
312
|
|
|
313
313
|
# Returns the value of attribute reader.
|
|
314
314
|
#
|
|
315
|
-
# source://smart_properties
|
|
315
|
+
# source://smart_properties//lib/smart_properties/property.rb#9
|
|
316
316
|
def reader; end
|
|
317
317
|
|
|
318
318
|
# @return [Boolean]
|
|
319
319
|
#
|
|
320
|
-
# source://smart_properties
|
|
320
|
+
# source://smart_properties//lib/smart_properties/property.rb#41
|
|
321
321
|
def required?(scope); end
|
|
322
322
|
|
|
323
|
-
# source://smart_properties
|
|
323
|
+
# source://smart_properties//lib/smart_properties/property.rb#122
|
|
324
324
|
def set(scope, value); end
|
|
325
325
|
|
|
326
|
-
# source://smart_properties
|
|
326
|
+
# source://smart_properties//lib/smart_properties/property.rb#126
|
|
327
327
|
def set_default(scope); end
|
|
328
328
|
|
|
329
|
-
# source://smart_properties
|
|
329
|
+
# source://smart_properties//lib/smart_properties/property.rb#141
|
|
330
330
|
def to_h; end
|
|
331
331
|
|
|
332
332
|
# Returns the value of attribute writable.
|
|
333
333
|
#
|
|
334
|
-
# source://smart_properties
|
|
334
|
+
# source://smart_properties//lib/smart_properties/property.rb#11
|
|
335
335
|
def writable; end
|
|
336
336
|
|
|
337
337
|
# @return [Boolean]
|
|
338
338
|
#
|
|
339
|
-
# source://smart_properties
|
|
339
|
+
# source://smart_properties//lib/smart_properties/property.rb#57
|
|
340
340
|
def writable?; end
|
|
341
341
|
|
|
342
342
|
private
|
|
343
343
|
|
|
344
344
|
# @return [Boolean]
|
|
345
345
|
#
|
|
346
|
-
# source://smart_properties
|
|
346
|
+
# source://smart_properties//lib/smart_properties/property.rb#155
|
|
347
347
|
def null_object?(object); end
|
|
348
348
|
|
|
349
349
|
class << self
|
|
350
|
-
# source://smart_properties
|
|
350
|
+
# source://smart_properties//lib/smart_properties/property.rb#13
|
|
351
351
|
def define(scope, name, **options); end
|
|
352
352
|
end
|
|
353
353
|
end
|
|
354
354
|
|
|
355
|
-
# source://smart_properties
|
|
355
|
+
# source://smart_properties//lib/smart_properties/property.rb#4
|
|
356
356
|
SmartProperties::Property::ALLOWED_DEFAULT_CLASSES = T.let(T.unsafe(nil), Array)
|
|
357
357
|
|
|
358
|
-
# source://smart_properties
|
|
358
|
+
# source://smart_properties//lib/smart_properties/property.rb#3
|
|
359
359
|
SmartProperties::Property::MODULE_REFERENCE = T.let(T.unsafe(nil), Symbol)
|
|
360
360
|
|
|
361
|
-
# source://smart_properties
|
|
361
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#2
|
|
362
362
|
class SmartProperties::PropertyCollection
|
|
363
363
|
include ::Enumerable
|
|
364
364
|
|
|
365
365
|
# @return [PropertyCollection] a new instance of PropertyCollection
|
|
366
366
|
#
|
|
367
|
-
# source://smart_properties
|
|
367
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#23
|
|
368
368
|
def initialize; end
|
|
369
369
|
|
|
370
|
-
# source://smart_properties
|
|
370
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#37
|
|
371
371
|
def [](name); end
|
|
372
372
|
|
|
373
|
-
# source://smart_properties
|
|
373
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#29
|
|
374
374
|
def []=(name, value); end
|
|
375
375
|
|
|
376
|
-
# source://smart_properties
|
|
376
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#53
|
|
377
377
|
def each(&block); end
|
|
378
378
|
|
|
379
379
|
# @return [Boolean]
|
|
380
380
|
#
|
|
381
|
-
# source://smart_properties
|
|
381
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#41
|
|
382
382
|
def key?(name); end
|
|
383
383
|
|
|
384
|
-
# source://smart_properties
|
|
384
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#45
|
|
385
385
|
def keys; end
|
|
386
386
|
|
|
387
387
|
# Returns the value of attribute parent.
|
|
388
388
|
#
|
|
389
|
-
# source://smart_properties
|
|
389
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#5
|
|
390
390
|
def parent; end
|
|
391
391
|
|
|
392
|
-
# source://smart_properties
|
|
392
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#62
|
|
393
393
|
def register(child); end
|
|
394
394
|
|
|
395
|
-
# source://smart_properties
|
|
395
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#58
|
|
396
396
|
def to_hash; end
|
|
397
397
|
|
|
398
|
-
# source://smart_properties
|
|
398
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#49
|
|
399
399
|
def values; end
|
|
400
400
|
|
|
401
401
|
protected
|
|
402
402
|
|
|
403
403
|
# Returns the value of attribute children.
|
|
404
404
|
#
|
|
405
|
-
# source://smart_properties
|
|
405
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#70
|
|
406
406
|
def children; end
|
|
407
407
|
|
|
408
408
|
# Sets the attribute children
|
|
409
409
|
#
|
|
410
410
|
# @param value the value to set the attribute children to.
|
|
411
411
|
#
|
|
412
|
-
# source://smart_properties
|
|
412
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#70
|
|
413
413
|
def children=(_arg0); end
|
|
414
414
|
|
|
415
415
|
# Returns the value of attribute collection.
|
|
416
416
|
#
|
|
417
|
-
# source://smart_properties
|
|
417
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#71
|
|
418
418
|
def collection; end
|
|
419
419
|
|
|
420
420
|
# Sets the attribute collection
|
|
421
421
|
#
|
|
422
422
|
# @param value the value to set the attribute collection to.
|
|
423
423
|
#
|
|
424
|
-
# source://smart_properties
|
|
424
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#71
|
|
425
425
|
def collection=(_arg0); end
|
|
426
426
|
|
|
427
427
|
# Returns the value of attribute collection_with_parent_collection.
|
|
428
428
|
#
|
|
429
|
-
# source://smart_properties
|
|
429
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#72
|
|
430
430
|
def collection_with_parent_collection; end
|
|
431
431
|
|
|
432
432
|
# Sets the attribute collection_with_parent_collection
|
|
433
433
|
#
|
|
434
434
|
# @param value the value to set the attribute collection_with_parent_collection to.
|
|
435
435
|
#
|
|
436
|
-
# source://smart_properties
|
|
436
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#72
|
|
437
437
|
def collection_with_parent_collection=(_arg0); end
|
|
438
438
|
|
|
439
|
-
# source://smart_properties
|
|
439
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#74
|
|
440
440
|
def notify_children; end
|
|
441
441
|
|
|
442
|
-
# source://smart_properties
|
|
442
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#78
|
|
443
443
|
def refresh(parent_collection); end
|
|
444
444
|
|
|
445
445
|
class << self
|
|
446
|
-
# source://smart_properties
|
|
446
|
+
# source://smart_properties//lib/smart_properties/property_collection.rb#7
|
|
447
447
|
def for(scope); end
|
|
448
448
|
end
|
|
449
449
|
end
|
|
450
450
|
|
|
451
|
-
# source://smart_properties
|
|
451
|
+
# source://smart_properties//lib/smart_properties/version.rb#2
|
|
452
452
|
SmartProperties::VERSION = T.let(T.unsafe(nil), String)
|
|
453
453
|
|
|
454
|
-
# source://smart_properties
|
|
454
|
+
# source://smart_properties//lib/smart_properties/validations.rb#4
|
|
455
455
|
module SmartProperties::Validations; end
|
|
456
456
|
|
|
457
|
-
# source://smart_properties
|
|
457
|
+
# source://smart_properties//lib/smart_properties/validations/ancestor.rb#4
|
|
458
458
|
class SmartProperties::Validations::Ancestor
|
|
459
459
|
include ::SmartProperties
|
|
460
460
|
extend ::SmartProperties::ClassMethods
|
|
461
461
|
|
|
462
|
-
# source://smart_properties
|
|
462
|
+
# source://smart_properties//lib/smart_properties/validations/ancestor.rb#13
|
|
463
463
|
def to_proc; end
|
|
464
464
|
|
|
465
|
-
# source://smart_properties
|
|
465
|
+
# source://smart_properties//lib/smart_properties/validations/ancestor.rb#18
|
|
466
466
|
def to_s; end
|
|
467
467
|
|
|
468
|
-
# source://smart_properties
|
|
468
|
+
# source://smart_properties//lib/smart_properties/validations/ancestor.rb#9
|
|
469
469
|
def validate(klass); end
|
|
470
470
|
|
|
471
471
|
class << self
|