Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Модуль:LibraryUtil: различия между версиями

Материал из Энциклопедия Тренерон
ru>Alistair3149
Sync with upstream
 
Новая страница: «-- Imported from: https://runescape.wiki/w/Module:LibraryUtil -- <nowiki> local libraryUtil = require( 'libraryUtil' ) function libraryUtil.makeCheckClassFunction( libraryName, varName, class, selfObjDesc ) return function ( self, method ) if getmetatable( self ) ~= class then error( string.format( "%s: invalid %s. Did you call %s with a dot instead of a colon, i.e. " .. "%s.%s() instead of %s:%s()?", libraryName, selfObjDesc, method, var...»
(нет различий)

Версия от 17:33, 22 октября 2023

Для документации этого модуля может быть создана страница Модуль:LibraryUtil/doc

Ошибка скрипта: Ошибка Lua: не удаётся создать процесс: proc_open(/dev/null): Failed to open stream: Operation not permitted

-- Imported from: https://runescape.wiki/w/Module:LibraryUtil

-- <nowiki>
local libraryUtil = require( 'libraryUtil' )

function libraryUtil.makeCheckClassFunction( libraryName, varName, class, selfObjDesc )
	return function ( self, method )
		if getmetatable( self ) ~= class then
			error( string.format(
				"%s: invalid %s. Did you call %s with a dot instead of a colon, i.e. " ..
				"%s.%s() instead of %s:%s()?",
				libraryName, selfObjDesc, method, varName, method, varName, method
			), 3 )
		end
	end
end

return libraryUtil
-- </nowiki>