Sha256: 0d0dd1c36422c71ed73f5142bc418b7fe4b7a2bc86e1d9f2e705e358cc43204c
Contents?: true
Size: 327 Bytes
Versions: 42
Compression:
Stored size: 327 Bytes
Contents
module Videojuicer module Resource class Errors < Hash def initialize(error_hash) self.merge!(error_hash) end def on(key) o = self[key.to_s] o = (o.is_a?(Array))? o.uniq : [o] return (o.compact.empty?)? nil : o.compact end end end end
Version data entries
42 entries across 42 versions & 2 rubygems
Version | Path |
---|---|
vj-sdk-0.4.0 | lib/videojuicer/resource/errors.rb |
vj-sdk-0.2.1 | lib/videojuicer/resource/errors.rb |