Module: Raingrams::Tokens
- Defined in:
- lib/raingrams/tokens/token.rb,
lib/raingrams/tokens/tokens.rb,
lib/raingrams/tokens/unknown.rb,
lib/raingrams/tokens/stop_sentence.rb,
lib/raingrams/tokens/start_sentence.rb
Defined Under Namespace
Classes: StartSentence, StopSentence, Token, Unknown
Class Method Summary collapse
-
.all ⇒ Object
Returns all defined tokens.
-
.start ⇒ Object
Returns the start sentence token.
-
.stop ⇒ Object
Returns the stop sentence token.
-
.unknown ⇒ Object
Returns the unknown word token.
Class Method Details
.all ⇒ Object
Returns all defined tokens.
10 11 12 |
# File 'lib/raingrams/tokens/tokens.rb', line 10 def Tokens.all @@raingram_tokens ||= {} end |
.start ⇒ Object
Returns the start sentence token.
17 18 19 |
# File 'lib/raingrams/tokens/tokens.rb', line 17 def Tokens.start Tokens.all[:start] ||= StartSentence.new end |