method

as_json

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: Complex
as_json(*) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/json/lib/json/add/complex.rb, line 11
  def as_json(*)
    {
      JSON.create_id => self.class.name,
      'r'            => real,
      'i'            => imag,
    }
  end
Register or log in to add new notes.