Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Class#json_creatable?

json_creatable?

Returns true if this class can be used to create an instance from a serialised JSON string. The class has to implement a class method json_create that expects a hash as first parameter. The hash should include the required data.

See also #inherited #new #allocate #subclasses also in 3.4 · 3.3 · 3.2 · 3.0