Method: Array#to_hash
- Defined in:
- lib/ruby-xbmc.rb
#to_hash(keys) ⇒ Object
60 61 62 63 |
# File 'lib/ruby-xbmc.rb', line 60 def to_hash(keys) return nil if(keys.length != self.length) Hash[*keys.zip(self).flatten] end |
60 61 62 63 |
# File 'lib/ruby-xbmc.rb', line 60 def to_hash(keys) return nil if(keys.length != self.length) Hash[*keys.zip(self).flatten] end |