Class: MarkovChainChatBot::Word

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

Class Method Summary collapse

Methods inherited from Token

#tkn_is_a?, #tkn_value

Class Method Details

.===(x) ⇒ Object



142
143
144
# File 'lib/markov_chain_chat_bot.rb', line 142

def self.===(x)
  x.is_a? String and x[0] == "w"
end

.new(value) ⇒ Object



138
139
140
# File 'lib/markov_chain_chat_bot.rb', line 138

def self.new(value)
  "w" + value
end