Class Complex
In: lib/json/add/complex.rb
Parent: Object

Methods

Public Class methods

Deserializes JSON string by converting Real value r, imaginary value i, to a Complex object.

Public Instance methods

Returns a hash, that will be turned into a JSON object and represent this object.

Stores class name (Complex) along with real value r and imaginary value i as JSON string

[Validate]