lib/chunky_png/datastream.rb in chunky_png-1.3.10 vs lib/chunky_png/datastream.rb in chunky_png-1.3.11
- old
+ new
@@ -140,10 +140,10 @@
# Returns all the textual metadata key/value pairs as hash.
# @return [Hash] A hash containing metadata fields and their values.
def metadata
metadata = {}
- other_chunks.select do |chunk|
+ other_chunks.each do |chunk|
metadata[chunk.keyword] = chunk.value if chunk.respond_to?(:keyword) && chunk.respond_to?(:value)
end
metadata
end