Sha256: a668f48618dc00136fc8ea659163c3f1dc91b9a47b87b8e307f264c10fbd57c5

Contents?: true

Size: 408 Bytes

Versions: 2

Compression:

Stored size: 408 Bytes

Contents

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

begin
	require_gem 'stemmer'
rescue LoadError
	puts "Please install stemmer from http://rubyforge.org/projects/stemmer or 'gem install stemmer'"
	exit(-1)
end

require 'classifier/extensions/word_hash'

class Object
	def prepare_category_name; to_s.gsub("_"," ").capitalize.intern end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
classifier-1.3.0 lib/classifier/extensions/string.rb
classifier-1.2.0 lib/classifier/string_extensions.rb