lib/tiff.rb in exifr-0.10 vs lib/tiff.rb in exifr-0.10.1
- old
+ new
@@ -306,10 +306,10 @@
@ifds.each { |ifd| yield ifd }
end
# Get +index+ image.
def [](index)
- @ifds[index]
+ index.is_a?(Symbol) ? to_hash[index] : @ifds[index]
end
# Dispatch to first image.
def method_missing(method, *args)
super unless args.empty?
\ No newline at end of file