Class: MarkovChainChatBot::PunctuationMark
- Defined in:
- lib/markov_chain_chat_bot.rb
Class Method Summary collapse
Methods inherited from Token
Class Method Details
.===(x) ⇒ Object
154 155 156 |
# File 'lib/markov_chain_chat_bot.rb', line 154 def self.===(x) x.is_a? String and x[0] == "p" end |
.new(value) ⇒ Object
150 151 152 |
# File 'lib/markov_chain_chat_bot.rb', line 150 def self.new(value) "p" + value end |