Permalink
Browse files

removing reader for dest hash on Destinations

  • Loading branch information...
1 parent 8a958e6 commit f726dc75478c8112ce7def1afe5213600765db7a @bmabey committed Sep 24, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rosetta_queue/destinations.rb
View
3 lib/rosetta_queue/destinations.rb
@@ -5,7 +5,6 @@ class Destinations
@dest = {}
class << self
- attr_reader :dest
def define
yield self
@@ -16,7 +15,7 @@ def clear
end
def lookup(dest_name)
- mapping = dest[dest_name.to_sym]
+ mapping = @dest[dest_name.to_sym]
raise "No destination mapping for '#{dest_name}' has been defined!" unless mapping
return mapping
end

0 comments on commit f726dc7

Please sign in to comment.