Class: Struct

Inherits:
Object
  • Object
show all
Defined in:
lib/zbox/ext/struct.rb

Class Method Summary collapse

Class Method Details

.to_hashObject


3
4
5
# File 'lib/zbox/ext/struct.rb', line 3

def to_hash
   Hash[*members.zip(values).flatten]
end