类 DidYouMean::ClassNameChecker::ClassName

属性

namespace[R]

公共类方法

new(name, namespace = '') 点击切换源代码
调用超类方法 String::new
# File 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

公共实例方法

full_name() 点击切换源代码
# File lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb, line 42
def full_name
  self.class.new("#{namespace}#{self}")
end