Class: Struct

Inherits:
Object show all
Defined in:
activesupport/lib/active_support/json/encoding.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



155
156
157
# File 'activesupport/lib/active_support/json/encoding.rb', line 155

def as_json(options = nil)
  Hash[members.zip(values)]
end