-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
NotImplementedError
with NoMethodError
as it is more appr…
…opriate for abstract class semantics.
- Loading branch information
1 parent
79bf509
commit a86bb22
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
lib/generators/twilio/rails/sms_responder/templates/responder.rb.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# frozen_string_literal: true | ||
class <%= class_name %>Responder < Twilio::Rails::SMS::DelegatedResponder | ||
def handle? | ||
raise NotImplementedError, "Implement #{ self.class }#handle?" | ||
raise NoMethodError, "#{ self.class }#handle? must be implemented." | ||
end | ||
|
||
def reply | ||
raise NotImplementedError, "Implement #{ self.class }#reply" | ||
raise NoMethodError, "#{ self.class }#reply must be implemented." | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters