Class: ZIMG::PNG::Metadata
- Inherits:
-
Array
- Object
- Array
- ZIMG::PNG::Metadata
- Defined in:
- lib/zimg/png/metadata.rb
Instance Method Summary collapse
- #[](*args) ⇒ Object
-
#initialize(img = nil) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
Instance Method Details
#[](*args) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/zimg/png/metadata.rb', line 17 def [] *args if args.first.is_a?(String) each { |a| return a[1] if a[0] == args.first } nil else super end end |