Backport of Struct#to_h from Ruby 2.0
3 4 5
# File 'lib/sinarey_support/core_ext/struct.rb', line 3 def to_h Hash[members.zip(values)] end