Class: Struct

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object


58
59
60
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 58

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