module Micro::Attributes::Features::Accept::Strict

Constants

ATTRIBUTES_REJECTED

Public Instance Methods

__call_after_attributes_assign() click to toggle source
# File lib/micro/attributes/features/accept/strict.rb, line 10
def __call_after_attributes_assign
  return unless attributes_errors?

  __raise_error_if_found_attributes_errors
end
__raise_error_if_found_attributes_errors() click to toggle source
# File lib/micro/attributes/features/accept/strict.rb, line 16
def __raise_error_if_found_attributes_errors
  raise ArgumentError, [
    ATTRIBUTES_REJECTED,
    attributes_errors.map { |key, msg| "* #{key.inspect} #{msg}" }.join("\n")
  ].join
end