lib/veritas/tuple.rb in veritas-0.0.1 vs lib/veritas/tuple.rb in veritas-0.0.2
- old
+ new
@@ -20,11 +20,12 @@
#
# @return [undefined]
#
# @api private
def initialize(header, data)
- @header, @data = header, data.to_ary
+ @header = header
+ @data = data.to_ary
end
# Lookup a value in the tuple given an attribute
#
# @example
@@ -138,16 +139,16 @@
end
# Return the hash of the tuple
#
# @example
- # numeric_hash = tuple.hash
+ # hash = tuple.hash
#
- # @return [Integer]
+ # @return [Fixnum]
#
# @api public
def hash
- header.hash ^ to_ary.hash
+ self.class.hash ^ header.hash ^ to_ary.hash
end
# Return a string representing the tuple data
#
# @example