Class: Cinch::Plugins::Hangman
- Inherits:
-
Object
- Object
- Cinch::Plugins::Hangman
- Includes:
- Cinch::Plugin
- Defined in:
- lib/cinch/plugins/hangman.rb
Instance Method Summary collapse
Instance Method Details
#guess(m, guess) ⇒ Object
10 11 12 13 |
# File 'lib/cinch/plugins/hangman.rb', line 10 def guess(m, guess) @game.guess(guess) m.reply @game.describe end |
#new_game(m, channel, answer) ⇒ Object
6 7 8 9 |
# File 'lib/cinch/plugins/hangman.rb', line 6 def new_game(m, channel, answer) @game = CinchHangman::Game.new(answer) Channel(channel).send(@game.describe) end |