sorbet-rails 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitattributes +1 -2
- data/.gitignore +2 -1
- data/.travis.yml +1 -1
- data/README.md +51 -4
- data/Rakefile +3 -3
- data/lib/bundled_rbi/customizabel_rbi_formatter.rbi +29 -0
- data/lib/bundled_rbi/pluck_to_tstruct.rbi +2 -1
- data/lib/sorbet-rails.rb +1 -1
- data/lib/sorbet-rails/config.rb +11 -0
- data/lib/sorbet-rails/deprecation.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +8 -0
- data/lib/sorbet-rails/job_rbi_formatter.rb +73 -62
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +40 -27
- data/lib/sorbet-rails/model_column_utils.rb +129 -0
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +28 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -102
- data/lib/sorbet-rails/model_plugins/base.rb +0 -10
- data/lib/sorbet-rails/model_utils.rb +5 -2
- data/lib/sorbet-rails/rails_mixins/pluck_to_tstruct.rb +17 -7
- data/lib/sorbet-rails/sorbet_utils.rb +152 -150
- data/lib/sorbet-rails/tasks/rails_rbi.rake +3 -3
- data/sorbet-rails.gemspec +1 -1
- data/spec/job_rbi_formatter_spec.rb +1 -1
- data/spec/pluck_to_tstruct_spec.rb +74 -1
- data/spec/rails_helper.rb +2 -2
- data/spec/rake_rails_rbi_jobs_spec.rb +20 -0
- data/spec/rake_rails_rbi_mailers_spec.rb +21 -0
- data/spec/support/v5.0/Gemfile +1 -1
- data/spec/support/v5.0/Gemfile.lock +8 -8
- data/spec/support/v5.1/Gemfile.lock +6 -6
- data/spec/support/v5.2/Gemfile +1 -1
- data/spec/support/v5.2/Gemfile.lock +8 -8
- data/spec/support/v6.0/.gitignore +6 -0
- data/spec/support/v6.0/Gemfile +3 -3
- data/spec/support/v6.0/Gemfile.lock +76 -75
- data/spec/support/v6.0/bin/bundle +22 -13
- data/spec/support/v6.0/config/environments/test.rb +1 -1
- data/spec/support/v6.0/tmp/pids/.keep +0 -0
- data/spec/test_data/v5.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.0/expected_potion.rbi +9 -0
- data/spec/test_data/v5.0/expected_robe.rbi +9 -0
- data/spec/test_data/v5.0/expected_school.rbi +9 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.0/expected_squib.rbi +18 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.0/expected_wand.rbi +9 -0
- data/spec/test_data/v5.0/expected_wizard.rbi +18 -0
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +18 -0
- data/spec/test_data/v5.1/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.1/expected_potion.rbi +9 -0
- data/spec/test_data/v5.1/expected_robe.rbi +9 -0
- data/spec/test_data/v5.1/expected_school.rbi +9 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.1/expected_squib.rbi +18 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.1/expected_wand.rbi +9 -0
- data/spec/test_data/v5.1/expected_wizard.rbi +18 -0
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +18 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -0
- data/spec/test_data/v5.2/expected_blob.rbi +19 -1
- data/spec/test_data/v5.2/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v5.2/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v5.2/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v5.2/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -0
- data/spec/test_data/v5.2/expected_potion.rbi +9 -0
- data/spec/test_data/v5.2/expected_robe.rbi +9 -0
- data/spec/test_data/v5.2/expected_school.rbi +9 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +9 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v5.2/expected_squib.rbi +38 -2
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v5.2/expected_wand.rbi +9 -0
- data/spec/test_data/v5.2/expected_wizard.rbi +38 -2
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +38 -2
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -0
- data/spec/test_data/v6.0/expected_blob.rbi +19 -1
- data/spec/test_data/v6.0/expected_custom_application_job.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_application_mailer.rbi +6 -0
- data/spec/test_data/v6.0/expected_custom_award_house_point_hourglasses.rbi +21 -0
- data/spec/test_data/v6.0/expected_custom_daily_prophet_mailer.rbi +8 -0
- data/spec/test_data/v6.0/expected_custom_hogwarts_acceptance_mailer.rbi +21 -0
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -0
- data/spec/test_data/v6.0/expected_potion.rbi +9 -0
- data/spec/test_data/v6.0/expected_robe.rbi +9 -0
- data/spec/test_data/v6.0/expected_school.rbi +9 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +9 -0
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -0
- data/spec/test_data/v6.0/expected_squib.rbi +38 -2
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -0
- data/spec/test_data/v6.0/expected_wand.rbi +9 -0
- data/spec/test_data/v6.0/expected_wizard.rbi +38 -2
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +38 -2
- metadata +45 -1
@@ -11,12 +11,30 @@ module ActiveStorage::Attachment::GeneratedAssociationMethods
|
|
11
11
|
sig { returns(::ActiveStorage::Blob) }
|
12
12
|
def blob; end
|
13
13
|
|
14
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
15
|
+
def build_blob(*args, &block); end
|
16
|
+
|
17
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
18
|
+
def create_blob(*args, &block); end
|
19
|
+
|
20
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
21
|
+
def create_blob!(*args, &block); end
|
22
|
+
|
14
23
|
sig { params(value: ::ActiveStorage::Blob).void }
|
15
24
|
def blob=(value); end
|
16
25
|
|
17
26
|
sig { returns(T.untyped) }
|
18
27
|
def record; end
|
19
28
|
|
29
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
30
|
+
def build_record(*args, &block); end
|
31
|
+
|
32
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
33
|
+
def create_record(*args, &block); end
|
34
|
+
|
35
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
36
|
+
def create_record!(*args, &block); end
|
37
|
+
|
20
38
|
sig { params(value: T.untyped).void }
|
21
39
|
def record=(value); end
|
22
40
|
end
|
@@ -11,7 +11,7 @@ module ActiveStorage::Blob::GeneratedAssociationMethods
|
|
11
11
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
12
12
|
def attachments; end
|
13
13
|
|
14
|
-
sig { returns(T::Array[
|
14
|
+
sig { returns(T::Array[T.untyped]) }
|
15
15
|
def attachment_ids; end
|
16
16
|
|
17
17
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -20,12 +20,30 @@ module ActiveStorage::Blob::GeneratedAssociationMethods
|
|
20
20
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
21
21
|
def preview_image_attachment; end
|
22
22
|
|
23
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
24
|
+
def build_preview_image_attachment(*args, &block); end
|
25
|
+
|
26
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
27
|
+
def create_preview_image_attachment(*args, &block); end
|
28
|
+
|
29
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
30
|
+
def create_preview_image_attachment!(*args, &block); end
|
31
|
+
|
23
32
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
24
33
|
def preview_image_attachment=(value); end
|
25
34
|
|
26
35
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
27
36
|
def preview_image_blob; end
|
28
37
|
|
38
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
39
|
+
def build_preview_image_blob(*args, &block); end
|
40
|
+
|
41
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
42
|
+
def create_preview_image_blob(*args, &block); end
|
43
|
+
|
44
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
45
|
+
def create_preview_image_blob!(*args, &block); end
|
46
|
+
|
29
47
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
30
48
|
def preview_image_blob=(value); end
|
31
49
|
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class ApplicationJob
|
6
|
+
sig { params(_: T.untyped).void }
|
7
|
+
def self.perform_later(*_); end
|
8
|
+
|
9
|
+
sig { params(_: T.untyped).void }
|
10
|
+
def self.perform_now(*_); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' jobs.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:jobs to regenerate.
|
5
|
+
class AwardHousePointHourglasses
|
6
|
+
sig { params(student: Wizard, point: Integer).void }
|
7
|
+
def self.perform_later(student:, point:); end
|
8
|
+
|
9
|
+
sig { params(student: Wizard, point: Integer).void }
|
10
|
+
def self.perform_now(student:, point:); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
wait: T.nilable(ActiveSupport::Duration),
|
15
|
+
wait_until: T.nilable(T.any(ActiveSupport::TimeWithZone, Date, Time)),
|
16
|
+
queue: T.nilable(T.any(String, Symbol)),
|
17
|
+
priority: T.nilable(Integer)
|
18
|
+
).returns(T.self_type)
|
19
|
+
end
|
20
|
+
def self.set(wait: nil, wait_until: nil, queue: nil, priority: nil); end
|
21
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class DailyProphetMailer
|
6
|
+
sig { params(wizards: T::Array[Wizard], hotnews_only: T::Boolean).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify_subscribers(wizards:, hotnews_only:); end
|
8
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# == Custom Generator ==
|
3
|
+
# This is an autogenerated file for Rails' mailers.
|
4
|
+
# Please rerun bundle exec rake rails_rbi:mailers to regenerate.
|
5
|
+
class HogwartsAcceptanceMailer
|
6
|
+
sig { params(student: Wizard).returns(ActionMailer::MessageDelivery) }
|
7
|
+
def self.notify(student); end
|
8
|
+
|
9
|
+
sig { params(student: T.untyped).returns(ActionMailer::MessageDelivery) }
|
10
|
+
def self.notify_retry(student); end
|
11
|
+
|
12
|
+
sig do
|
13
|
+
params(
|
14
|
+
teacher: Wizard,
|
15
|
+
note: String,
|
16
|
+
student: Wizard,
|
17
|
+
special: T::Boolean
|
18
|
+
).returns(ActionMailer::MessageDelivery)
|
19
|
+
end
|
20
|
+
def self.notify_teacher(teacher, note = nil, student:, special: false); end
|
21
|
+
end
|
@@ -40,12 +40,30 @@ module Headmaster::GeneratedAssociationMethods
|
|
40
40
|
sig { returns(::School) }
|
41
41
|
def school; end
|
42
42
|
|
43
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
44
|
+
def build_school(*args, &block); end
|
45
|
+
|
46
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
47
|
+
def create_school(*args, &block); end
|
48
|
+
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
50
|
+
def create_school!(*args, &block); end
|
51
|
+
|
43
52
|
sig { params(value: ::School).void }
|
44
53
|
def school=(value); end
|
45
54
|
|
46
55
|
sig { returns(::Wizard) }
|
47
56
|
def wizard; end
|
48
57
|
|
58
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
59
|
+
def build_wizard(*args, &block); end
|
60
|
+
|
61
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
62
|
+
def create_wizard(*args, &block); end
|
63
|
+
|
64
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
65
|
+
def create_wizard!(*args, &block); end
|
66
|
+
|
49
67
|
sig { params(value: ::Wizard).void }
|
50
68
|
def wizard=(value); end
|
51
69
|
end
|
@@ -11,6 +11,15 @@ module Potion::GeneratedAssociationMethods
|
|
11
11
|
sig { returns(T.nilable(::Wizard)) }
|
12
12
|
def wizard; end
|
13
13
|
|
14
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
15
|
+
def build_wizard(*args, &block); end
|
16
|
+
|
17
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
18
|
+
def create_wizard(*args, &block); end
|
19
|
+
|
20
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
21
|
+
def create_wizard!(*args, &block); end
|
22
|
+
|
14
23
|
sig { params(value: T.nilable(::Wizard)).void }
|
15
24
|
def wizard=(value); end
|
16
25
|
end
|
@@ -31,6 +31,15 @@ module Robe::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Wizard)) }
|
32
32
|
def wizard; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
35
|
+
def build_wizard(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
38
|
+
def create_wizard(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
41
|
+
def create_wizard!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Wizard)).void }
|
35
44
|
def wizard=(value); end
|
36
45
|
end
|
@@ -31,6 +31,15 @@ module School::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(::Headmaster) }
|
32
32
|
def headmaster; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
35
|
+
def build_headmaster(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
38
|
+
def create_headmaster(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Headmaster).void)).returns(::Headmaster) }
|
41
|
+
def create_headmaster!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: ::Headmaster).void }
|
35
44
|
def headmaster=(value); end
|
36
45
|
end
|
@@ -31,12 +31,30 @@ module Spell::HABTM_SpellBooks::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Spell)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Spell)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
37
46
|
sig { returns(::SpellBook) }
|
38
47
|
def spell_book; end
|
39
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
50
|
+
def build_spell_book(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
53
|
+
def create_spell_book(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
56
|
+
def create_spell_book!(*args, &block); end
|
57
|
+
|
40
58
|
sig { params(value: ::SpellBook).void }
|
41
59
|
def spell_book=(value); end
|
42
60
|
end
|
@@ -87,6 +87,15 @@ module SpellBook::GeneratedAssociationMethods
|
|
87
87
|
sig { returns(::Wizard) }
|
88
88
|
def wizard; end
|
89
89
|
|
90
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
91
|
+
def build_wizard(*args, &block); end
|
92
|
+
|
93
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
94
|
+
def create_wizard(*args, &block); end
|
95
|
+
|
96
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
97
|
+
def create_wizard!(*args, &block); end
|
98
|
+
|
90
99
|
sig { params(value: ::Wizard).void }
|
91
100
|
def wizard=(value); end
|
92
101
|
end
|
@@ -31,12 +31,30 @@ module SpellBook::HABTM_Spells::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::SpellBook)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::SpellBook).void)).returns(::SpellBook) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::SpellBook)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
37
46
|
sig { returns(::Spell) }
|
38
47
|
def spell; end
|
39
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
50
|
+
def build_spell(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
53
|
+
def create_spell(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Spell).void)).returns(::Spell) }
|
56
|
+
def create_spell!(*args, &block); end
|
57
|
+
|
40
58
|
sig { params(value: ::Spell).void }
|
41
59
|
def spell=(value); end
|
42
60
|
end
|
@@ -252,7 +252,7 @@ module Squib::GeneratedAssociationMethods
|
|
252
252
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
253
253
|
def hats_attachments; end
|
254
254
|
|
255
|
-
sig { returns(T::Array[
|
255
|
+
sig { returns(T::Array[T.untyped]) }
|
256
256
|
def hats_attachment_ids; end
|
257
257
|
|
258
258
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -261,7 +261,7 @@ module Squib::GeneratedAssociationMethods
|
|
261
261
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
262
262
|
def hats_blobs; end
|
263
263
|
|
264
|
-
sig { returns(T::Array[
|
264
|
+
sig { returns(T::Array[T.untyped]) }
|
265
265
|
def hats_blob_ids; end
|
266
266
|
|
267
267
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -270,18 +270,45 @@ module Squib::GeneratedAssociationMethods
|
|
270
270
|
sig { returns(T.nilable(::School)) }
|
271
271
|
def school; end
|
272
272
|
|
273
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
274
|
+
def build_school(*args, &block); end
|
275
|
+
|
276
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
277
|
+
def create_school(*args, &block); end
|
278
|
+
|
279
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
280
|
+
def create_school!(*args, &block); end
|
281
|
+
|
273
282
|
sig { params(value: T.nilable(::School)).void }
|
274
283
|
def school=(value); end
|
275
284
|
|
276
285
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
277
286
|
def school_photo_attachment; end
|
278
287
|
|
288
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
289
|
+
def build_school_photo_attachment(*args, &block); end
|
290
|
+
|
291
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
292
|
+
def create_school_photo_attachment(*args, &block); end
|
293
|
+
|
294
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
295
|
+
def create_school_photo_attachment!(*args, &block); end
|
296
|
+
|
279
297
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
280
298
|
def school_photo_attachment=(value); end
|
281
299
|
|
282
300
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
283
301
|
def school_photo_blob; end
|
284
302
|
|
303
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
304
|
+
def build_school_photo_blob(*args, &block); end
|
305
|
+
|
306
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
307
|
+
def create_school_photo_blob(*args, &block); end
|
308
|
+
|
309
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
310
|
+
def create_school_photo_blob!(*args, &block); end
|
311
|
+
|
285
312
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
286
313
|
def school_photo_blob=(value); end
|
287
314
|
|
@@ -306,6 +333,15 @@ module Squib::GeneratedAssociationMethods
|
|
306
333
|
sig { returns(T.nilable(::Wand)) }
|
307
334
|
def wand; end
|
308
335
|
|
336
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
337
|
+
def build_wand(*args, &block); end
|
338
|
+
|
339
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
340
|
+
def create_wand(*args, &block); end
|
341
|
+
|
342
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
343
|
+
def create_wand!(*args, &block); end
|
344
|
+
|
309
345
|
sig { params(value: T.nilable(::Wand)).void }
|
310
346
|
def wand=(value); end
|
311
347
|
end
|
@@ -31,12 +31,30 @@ module Subject::HABTM_Wizards::GeneratedAssociationMethods
|
|
31
31
|
sig { returns(T.nilable(::Subject)) }
|
32
32
|
def left_side; end
|
33
33
|
|
34
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
35
|
+
def build_left_side(*args, &block); end
|
36
|
+
|
37
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
38
|
+
def create_left_side(*args, &block); end
|
39
|
+
|
40
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Subject).void)).returns(::Subject) }
|
41
|
+
def create_left_side!(*args, &block); end
|
42
|
+
|
34
43
|
sig { params(value: T.nilable(::Subject)).void }
|
35
44
|
def left_side=(value); end
|
36
45
|
|
37
46
|
sig { returns(T.nilable(::Wizard)) }
|
38
47
|
def wizard; end
|
39
48
|
|
49
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
50
|
+
def build_wizard(*args, &block); end
|
51
|
+
|
52
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
53
|
+
def create_wizard(*args, &block); end
|
54
|
+
|
55
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
56
|
+
def create_wizard!(*args, &block); end
|
57
|
+
|
40
58
|
sig { params(value: T.nilable(::Wizard)).void }
|
41
59
|
def wizard=(value); end
|
42
60
|
end
|
@@ -184,6 +184,15 @@ module Wand::GeneratedAssociationMethods
|
|
184
184
|
sig { returns(::Wizard) }
|
185
185
|
def wizard; end
|
186
186
|
|
187
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
188
|
+
def build_wizard(*args, &block); end
|
189
|
+
|
190
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
191
|
+
def create_wizard(*args, &block); end
|
192
|
+
|
193
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wizard).void)).returns(::Wizard) }
|
194
|
+
def create_wizard!(*args, &block); end
|
195
|
+
|
187
196
|
sig { params(value: ::Wizard).void }
|
188
197
|
def wizard=(value); end
|
189
198
|
end
|
@@ -292,7 +292,7 @@ module Wizard::GeneratedAssociationMethods
|
|
292
292
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
293
293
|
def hats_attachments; end
|
294
294
|
|
295
|
-
sig { returns(T::Array[
|
295
|
+
sig { returns(T::Array[T.untyped]) }
|
296
296
|
def hats_attachment_ids; end
|
297
297
|
|
298
298
|
sig { params(value: T::Enumerable[::ActiveStorage::Attachment]).void }
|
@@ -301,7 +301,7 @@ module Wizard::GeneratedAssociationMethods
|
|
301
301
|
sig { returns(::ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy) }
|
302
302
|
def hats_blobs; end
|
303
303
|
|
304
|
-
sig { returns(T::Array[
|
304
|
+
sig { returns(T::Array[T.untyped]) }
|
305
305
|
def hats_blob_ids; end
|
306
306
|
|
307
307
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
@@ -310,18 +310,45 @@ module Wizard::GeneratedAssociationMethods
|
|
310
310
|
sig { returns(T.nilable(::School)) }
|
311
311
|
def school; end
|
312
312
|
|
313
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
314
|
+
def build_school(*args, &block); end
|
315
|
+
|
316
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
317
|
+
def create_school(*args, &block); end
|
318
|
+
|
319
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
320
|
+
def create_school!(*args, &block); end
|
321
|
+
|
313
322
|
sig { params(value: T.nilable(::School)).void }
|
314
323
|
def school=(value); end
|
315
324
|
|
316
325
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
317
326
|
def school_photo_attachment; end
|
318
327
|
|
328
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
329
|
+
def build_school_photo_attachment(*args, &block); end
|
330
|
+
|
331
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
332
|
+
def create_school_photo_attachment(*args, &block); end
|
333
|
+
|
334
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Attachment).void)).returns(::ActiveStorage::Attachment) }
|
335
|
+
def create_school_photo_attachment!(*args, &block); end
|
336
|
+
|
319
337
|
sig { params(value: T.nilable(::ActiveStorage::Attachment)).void }
|
320
338
|
def school_photo_attachment=(value); end
|
321
339
|
|
322
340
|
sig { returns(T.nilable(::ActiveStorage::Blob)) }
|
323
341
|
def school_photo_blob; end
|
324
342
|
|
343
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
344
|
+
def build_school_photo_blob(*args, &block); end
|
345
|
+
|
346
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
347
|
+
def create_school_photo_blob(*args, &block); end
|
348
|
+
|
349
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::ActiveStorage::Blob).void)).returns(::ActiveStorage::Blob) }
|
350
|
+
def create_school_photo_blob!(*args, &block); end
|
351
|
+
|
325
352
|
sig { params(value: T.nilable(::ActiveStorage::Blob)).void }
|
326
353
|
def school_photo_blob=(value); end
|
327
354
|
|
@@ -346,6 +373,15 @@ module Wizard::GeneratedAssociationMethods
|
|
346
373
|
sig { returns(T.nilable(::Wand)) }
|
347
374
|
def wand; end
|
348
375
|
|
376
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
377
|
+
def build_wand(*args, &block); end
|
378
|
+
|
379
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
380
|
+
def create_wand(*args, &block); end
|
381
|
+
|
382
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
383
|
+
def create_wand!(*args, &block); end
|
384
|
+
|
349
385
|
sig { params(value: T.nilable(::Wand)).void }
|
350
386
|
def wand=(value); end
|
351
387
|
end
|