Sha256: 254046651aa9481fef9f043775b2d002664e3f3b3ee136d673ee634e58885ccd

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

# Author::    Lucas Carlson  (mailto:lucas@rufy.com)
# Copyright:: Copyright (c) 2005 Lucas Carlson
# License::   LGPL

require 'fast_stemmer'
require 'classifier-reborn/extensions/hasher'

module ClassifierReborn
  module CategoryNamer
    extend self
    def prepare_name(name) 
      return name if name.is_a?(Symbol)

      name.to_s.gsub("_"," ").capitalize.intern
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
classifier-reborn-2.0.4 lib/classifier-reborn/category_namer.rb