Class: Class (Ruby 2.3.4)

Class

Extends any Class to include json_creatable? method.

Public Instance Methods

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.

 
               # File json/lib/json/common.rb, line 482
def json_creatable?
  respond_to?(:json_create)
end