Permalink
Browse files

Use Hash#key instead of Hash#index

  • Loading branch information...
Micah Werbitt
Micah Werbitt committed Jul 16, 2011
1 parent e90652b commit d39f85948e7277a97d7a163c2209d27e81afc41f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/palette/color.rb
View
@@ -13,7 +13,7 @@ def to_hex
end
def to_cterm
- self.class.color_map.index(closest_cterm_hex)
+ self.class.color_map.key(closest_cterm_hex)
end
private

0 comments on commit d39f859

Please sign in to comment.