instance method
DidYouMean::ClassNameChecker#scopes
scopes
lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 28
def scopes
@scopes ||= @receiver.to_s.split("::").inject([Object]) do |_scopes, scope|
_scopes << _scopes.last.const_get(scope)
end.uniq
end
No documentation available