Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
DidYouMean::ClassNameChecker#class_names
class_names
lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 20
def class_names
scopes.flat_map do |scope|
scope.constants.map do |c|
ClassName.new(c, scope == Object ? "" : "#{scope}::")
end
end
end
No documentation available