diff options
| author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:04:45 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:04:45 +0000 | 
| commit | 4cfe64841e7eb91a314f6e03026e5ffdcd8dcbdf (patch) | |
| tree | cbb2484048ce5f08052c4d2bf097534588629e54 /lib | |
| parent | 0220b5dfebf2bc91a2fe69068179dd436f577a1d (diff) | |
Omit the parentheses in defs when the method doesn't accept any arguments.
This is neater.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/custodian/alerts/mauve.rb | 2 | ||||
| -rw-r--r-- | lib/custodian/parser.rb | 2 | ||||
| -rw-r--r-- | lib/custodian/queue.rb | 2 | 
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb index 79a1416..8ce14c1 100644 --- a/lib/custodian/alerts/mauve.rb +++ b/lib/custodian/alerts/mauve.rb @@ -60,7 +60,7 @@ module Custodian        #        # Generate an alert-message which will be raised via mauve.        # -      def raise() +      def raise          return unless( @loaded ) diff --git a/lib/custodian/parser.rb b/lib/custodian/parser.rb index 3379c5a..e73001f 100644 --- a/lib/custodian/parser.rb +++ b/lib/custodian/parser.rb @@ -52,7 +52,7 @@ module Custodian      #      # Constructor      # -    def initialize( ) +    def initialize         @MACROS  = Hash.new()        @jobs    = Array.new()      end diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index e8cfb8a..6e252e9 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -62,7 +62,7 @@ module Custodian      #      # Empty the queue      # -    def flush!() +    def flush!        raise "Subclasses must implement this method!"      end  end  | 
