Class: ZPNG::Metadata
- Inherits:
-
Array
- Object
- Array
- ZPNG::Metadata
- Defined in:
- lib/zpng/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
11 12 13 14 15 16 17 18 |
# File 'lib/zpng/metadata.rb', line 11 def [] *args if args.first.is_a?(String) each{ |a| return a[1] if a[0] == args.first } nil else super end end |