module ViewComponent::Slotable
def validate_singular_slot_name(slot_name)
def validate_singular_slot_name(slot_name) if slot_name.to_sym == :content raise ContentSlotNameError.new(name) end if RESERVED_NAMES[:singular].include?(slot_name.to_sym) raise ReservedSingularSlotNameError.new(name, slot_name) end raise_if_slot_conflicts_with_call(slot_name) raise_if_slot_ends_with_question_mark(slot_name) raise_if_slot_registered(slot_name) end