Flowdock
method

as_json

Importance_0
Ruby latest stable (v1_9_3_392) - 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.