Method: Classifier::ContentNode#initialize
- Defined in:
- lib/classifier/lsi/content_node.rb
#initialize(word_hash, *categories) ⇒ ContentNode
If text_proc is not specified, the source will be duck-typed via source.to_s
18 19 20 21 |
# File 'lib/classifier/lsi/content_node.rb', line 18 def initialize( word_hash, *categories ) @categories = categories || [] @word_hash = word_hash end |