class ActiveModel::Errors

def initialize(base)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (Types::Sample base) -> void

This signature was generated using 6 samples from 1 application.

end
end
@errors = ActiveModel::Errors.new(self)
def initialize
class Person

Pass in the instance of the object that is using the errors object.
def initialize(base)
  @base = base
  @errors = []
end