class method self.new

Ruby on Rails edge

Since edge

Signature

self.new(schema, data:)

No documentation comment.

Parameters

schema req
data keyreq
Source
# File activemodel/lib/active_model/schematized_json.rb, line 71
      def initialize(schema, data:)
        @schema, @data = schema, data
        update_data_with_schema_defaults
      end

Defined in activemodel/lib/active_model/schematized_json.rb line 71 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::SchematizedJson::DataAccessor

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close