Permalink
Browse files

Use Hash#key instead of Hash#index

  • Loading branch information...
1 parent e8235f6 commit b17f6bc98e96ce9ddeda729a2b5d2db460f4452f Micah Werbitt committed with Jul 16, 2011
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 b17f6bc

Please sign in to comment.