{"id":22981072,"url":"https://github.com/rubyworks/inheritor","last_synced_at":"2025-10-12T12:35:44.736Z","repository":{"id":674198,"uuid":"317692","full_name":"rubyworks/inheritor","owner":"rubyworks","description":"Class-level Inhertiable Variables","archived":false,"fork":false,"pushed_at":"2009-10-12T16:54:22.000Z","size":299,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T09:45:13.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/rubyworks.png","metadata":{"files":{"readme":"README","changelog":"HISTORY","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-09-25T19:09:14.000Z","updated_at":"2018-11-09T15:00:32.000Z","dependencies_parsed_at":"2022-08-16T10:40:16.156Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/inheritor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rubyworks/inheritor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Finheritor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Finheritor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Finheritor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Finheritor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/inheritor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Finheritor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011296,"owners_count":26084928,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-15T01:46:52.917Z","updated_at":"2025-10-12T12:35:44.699Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","readme":"= Inheritor\n\n* http://rubyworks.github.com/inheritor\n* http://github.com/rubyworks/inheritor\n\n\n== DESCRIPTION\n\nInheritor provides a means to store and inherit data along the class\nheirarchy. An inheritor creates two methods, one named after for the\n+key+ that provides a reader, and one named +key!+ which provides\nthe writer. Because of the unique nature of Inheritor, the reader\ncannot be used to modify the underlying store b/c it is a calculated\nattribute, thus any modifications to the result would not be passed on\nto the descendents.\n\nThe most notable feature of Inheritor is that it is dynamic. Unlike other\nsolutions, such as ActiveSupport's +class_inheritable_accessor+, Inheritor\ndynamically generates the inherited value whenever the reader is called,\nas opposed to copying the parents variable value upon class creation or\nsome other specific trigger.\n\n\n== FEATURES/ISSUES\n\n* Create inheritable attributes.\n* Works with modules, providing module method inheritance.\n* Easily handles any data and inheritance type.\n\n\n== RELEASE NOTES\n\nPlease see HISTORY file.\n\n\n== SYNOPSIS\n\nTo create an inheritable class variable provide the #inheritor method\nwith the name of the variable, it's initial value, and the methdod\nto be used to process inheritence from descendent to descendent.\n\n   class X\n     inheritor :foo, [], :+\n   end\n\n   class Y \u003c X\n   end\n\n   X.x! \u003c\u003c :a\n   X.x =\u003e [:a]\n   Y.x =\u003e [:a]\n\n   Y.x! \u003c\u003c :b\n   X.x =\u003e [:a]\n   Y.x =\u003e [:a, :b]\n\n\n== HOW TO INSTALL\n\nTo install with RubyGems simply open a console and type:\n\n  gem install inheritor\n\nLocal installation requires Setup.rb (gem install setup),\nthen download the tarball package and type:\n\n  tar -xvzf inheritor-1.0.0.tgz\n  cd inheritor-1.0.0\n  sudo setup.rb all\n\nWindows users use 'ruby setup.rb all'.\n\n\n== COPYING\n\n(MIT License)\n\nCopyright (c) 2004 Thomas Sawyer\n\nThis program is ditributed unser the terms of the MIT license.\n\nSee LICENSE or COPYING file for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Finheritor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Finheritor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Finheritor/lists"}