Skip to content

Commit

Permalink
Fix singleton method definition style
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Oct 27, 2022
1 parent f30e99f commit 4b6a8d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/tapioca/dsl/compilers/rubocop.rb
Expand Up @@ -14,9 +14,12 @@ module Compilers
class RuboCop < Compiler
ConstantType = type_member { { fixed: T.all(T.class_of(::RuboCop::Cop::Base), Extensions::RuboCop) } }

sig { override.returns(T::Enumerable[Class]) }
def self.gather_constants
descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
class << self
extend T::Sig
sig { override.returns(T::Enumerable[Class]) }
def gather_constants
descendants_of(::RuboCop::Cop::Base).select { |constant| name_of(constant) }
end
end

sig { override.void }
Expand Down

0 comments on commit 4b6a8d8

Please sign in to comment.