Class: Struct

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:


158
159
160
# File 'activesupport/lib/active_support/json/encoding.rb', line 158

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