In Files

  • ruby-3.1.2/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

DidYouMean::ClassNameChecker::ClassName

Attributes

namespace[R]

Public Class Methods

new(name, namespace = '') click to toggle source
 
               # File ruby-3.1.2/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 37
def initialize(name, namespace = '')
  super(name.to_s)
  @namespace = namespace
end
            

Public Instance Methods

full_name() click to toggle source
 
               # File ruby-3.1.2/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 42
def full_name
  self.class.new("#{namespace}#{self}")
end