diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:15 +0000 |
commit | a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (patch) | |
tree | 3fe30365cc9d793c752653a59614b52009ef9336 /lib/custodian/alertfactory.rb | |
parent | 7782df6020704f51ee2d6194d8d3b74f28a53401 (diff) |
Prefer single-quotes when you don't need interpolation.
So "foo" is less good than 'foo'.
Diffstat (limited to 'lib/custodian/alertfactory.rb')
-rw-r--r-- | lib/custodian/alertfactory.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/alertfactory.rb b/lib/custodian/alertfactory.rb index 1cb4751..78ad9cf 100644 --- a/lib/custodian/alertfactory.rb +++ b/lib/custodian/alertfactory.rb @@ -46,8 +46,8 @@ module Custodian # def self.create( alert_type, obj ) - raise ArgumentError, "The type of notifier to create cannot be nil" if alert_type.nil? - raise ArgumentError, "The type of notifier to create must be a string" unless alert_type.kind_of? String + raise ArgumentError, 'The type of notifier to create cannot be nil' if alert_type.nil? + raise ArgumentError, 'The type of notifier to create must be a string' unless alert_type.kind_of? String c = @@subclasses[alert_type] if c @@ -112,7 +112,7 @@ module Custodian # Raise an alert. # def raise - puts "NOP" + puts 'NOP' end @@ -121,7 +121,7 @@ module Custodian # Clear an alert. # def clear - puts "NOP" + puts 'NOP' end |