Permalink
Browse files

Using #field_for in PrimitiveTuple[] instead of manually referencing …

…#fields_hash
  • Loading branch information...
1 parent a66242c commit 0a2dec4fb2a27d94127972a9ed3bcf06dbf6b99e Nathan Sobo committed Nov 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/unison/tuples/primitive_tuple.rb
@@ -144,7 +144,7 @@ def [](attribute_or_symbol)
self
else
attribute = attribute_for(attribute_or_symbol)
- value = fields_hash[attribute].value
+ value = field_for(attribute).value
attribute.transform ? instance_exec(value, &attribute.transform) : value
end
end

0 comments on commit 0a2dec4

Please sign in to comment.