class Rails::Generators::NamedBase

def class_name

def class_name
  @class_name ||= (class_path + [file_name]).map!{ |m| m.camelize }.join('::')
end