lib/gyoku/array.rb in gyoku-0.2.0 vs lib/gyoku/array.rb in gyoku-0.3.0

- old
+ new

@@ -35,10 +35,10 @@ # Takes a Hash of +attributes+ and the +index+ for which to return attributes # for duplicate tags. def self.tag_attributes(attributes, index) return {} if attributes.empty? - + attributes.inject({}) do |hash, (key, value)| value = value[index] if value.kind_of? ::Array hash.merge key => value end end