{"id":16131250,"url":"https://github.com/kaeza/klass","last_synced_at":"2025-04-06T14:26:20.329Z","repository":{"id":150800666,"uuid":"96481161","full_name":"kaeza/klass","owner":"kaeza","description":"Minimalistic class system for Lua.","archived":false,"fork":false,"pushed_at":"2019-11-06T02:47:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T20:34:03.697Z","etag":null,"topics":["lua"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaeza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-06T23:50:46.000Z","updated_at":"2019-11-06T02:47:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"f08079cc-0be8-468b-b8f0-dbb74779bd64","html_url":"https://github.com/kaeza/klass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeza%2Fklass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeza%2Fklass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeza%2Fklass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaeza%2Fklass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaeza","download_url":"https://codeload.github.com/kaeza/klass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247494247,"owners_count":20947841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua"],"created_at":"2024-10-09T22:24:35.004Z","updated_at":"2025-04-06T14:26:20.302Z","avatar_url":"https://github.com/kaeza.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Klass\n\nMinimalistic class system for Lua.\n\n## License\n\nThis program is free software released under a permissive license. You can\nuse it both in Free and closed source software. See `LICENSE.md` for details.\n\n## Requirements\n\n* [Lua][Lua] 5.1 to 5.3.\n\n## API Documentation\n\nThe API documentation is generated using [LDoc][LDoc].\n\n## Links\n\n* Download development version: [`.zip`][devzip], [`.tar.gz`][devtgz].\n* [Project page][repo] at Github.\n\n## Examples\n\n    local klass = require \"klass\"\n\n    local Base = klass:extend(\"Base\")\n\n    Base.x = 1\n\n    function Base:init(x)\n        self.x = x\n    end\n\n    function Base:__tostring()\n        return self.__name..\": \"..tostring(self.x)\n    end\n\n    local Derived = Base:extend(\"Derived\")\n\n    Derived.x = 3\n\n    local t1 = Base()\n    local t2 = Base(2)\n    local t3 = Derived()\n    local t4 = Derived(4)\n    local t5 = Derived(t1)\n\n    print(t1) --\u003e Base: 1\n    print(t2) --\u003e Base: 2\n    print(t3) --\u003e Derived: 3\n    print(t4) --\u003e Derived: 4\n    print(t5) --\u003e Derived: Base: 1\n\n    print(t5.x) --\u003e Base: 1\n\n[Lua]: https://lua.org\n[LDoc]: https://github.com/stevedonovan/LDoc\n[devzip]: https://github.com/kaeza/klass/archive/master.zip\n[devtgz]: https://github.com/kaeza/klass/archive/master.tar.gz\n[repo]: https://github.com/kaeza/klass\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaeza%2Fklass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaeza%2Fklass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaeza%2Fklass/lists"}