Skip to content

Commit

Permalink
Renamed CommandRecognizing to SlashRecognizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
omo committed Mar 17, 2012
1 parent 45df548 commit 7f4f023
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ankit/challenge.rb
Expand Up @@ -273,7 +273,7 @@ def pump
end
end

module CommandRecognizing
module SlashRecognizing
def may_pump_command(answered)
/^\/(\w+)/.match(answered) ? pump_command($1) : nil
end
Expand All @@ -291,7 +291,7 @@ def pump_command(command)
end

class QuestionState < State
include CommandRecognizing
include SlashRecognizing

def pump
progress.attack
Expand All @@ -317,7 +317,7 @@ def pump
end

class FailedStateBase < State
include CommandRecognizing
include SlashRecognizing

def pump
original = progress.current_card.corrected_original_over(last_answer)
Expand Down Expand Up @@ -355,7 +355,7 @@ def decoration_type
end

class PassedState < State
include CommandRecognizing
include SlashRecognizing

def pump
progress.pass
Expand Down

0 comments on commit 7f4f023

Please sign in to comment.