123456789_123456789_123456789_123456789_123456789_

Class: DidYouMean::ClassNameChecker::ClassName

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, String
Instance Chain:
self, String
Inherits: String
  • Object
Defined in: lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(name, namespace = '') ⇒ ClassName

[ GitHub ]

  
# 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

Instance Attribute Details

#namespace (readonly)

[ GitHub ]

  
# File 'lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb', line 35

attr :namespace

Instance Method Details

#full_name

[ GitHub ]

  
# 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