Class: Tangram::Unigram

Inherits:
Object
  • Object
show all
Defined in:
lib/tangram/tangram.rb

Overview

This describes a unigram ngram.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Unigram

Returns a new instance of Unigram.



173
174
175
# File 'lib/tangram/tangram.rb', line 173

def initialize(token)
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

This is the token.



172
173
174
# File 'lib/tangram/tangram.rb', line 172

def token
  @token
end