Tapioca::Dsl::Compilers::ActiveModelValidationsConfirmation
decorates RBI files for all
classes that use ActiveModel::Validates::Confirmation
.
For example, with the following class:
class User
include ActiveModel::Validations
validates_confirmation_of :password
validates :email, confirmation: true
end
this compiler will produce an RBI file with the following content:
# typed: true
class User
sig { returns(T.untyped) }
def email_confirmation; end
sig { params(email_confirmation=: T.untyped).returns(T.untyped) }
def email_confirmation=(email_confirmation); end
sig { returns(T.untyped) }
def password_confirmation; end
sig { params(password_confirmation=: T.untyped).returns(T.untyped) }
def password_confirmation=(password_confirmation); end
end