Skip to content

Commit 4b6a8d8

Browse files
committed
Fix singleton method definition style
1 parent f30e99f commit 4b6a8d8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/tapioca/dsl/compilers/rubocop.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ module Compilers
1414
class RuboCop < Compiler
1515
ConstantType = type_member { { fixed: T.all(T.class_of(::RuboCop::Cop::Base), Extensions::RuboCop) } }
1616

17-
sig { override.returns(T::Enumerable[Class]) }
18-
def self.gather_constants
19-
descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
17+
class << self
18+
extend T::Sig
19+
sig { override.returns(T::Enumerable[Class]) }
20+
def gather_constants
21+
descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
22+
end
2023
end
2124

2225
sig { override.void }

0 commit comments

Comments
 (0)