class PryEmoji::PromptConfig::Match
Attributes
last_emoji[RW]
Public Class Methods
new(config)
click to toggle source
Calls superclass method
PryEmoji::PromptConfig::Game::new
# File lib/pry-emoji.rb, line 101 def initialize(config) @advantage = 10 super(config) end
Public Instance Methods
randomize_emoji()
click to toggle source
Calls superclass method
PryEmoji::PromptConfig::Game#randomize_emoji
# File lib/pry-emoji.rb, line 106 def randomize_emoji @last_emoji = emoji @emoji = random_emoji super end
winner?()
click to toggle source
# File lib/pry-emoji.rb, line 112 def winner? last_emoji == emoji end