{"id":22981069,"url":"https://github.com/rubyworks/main_like_module","last_synced_at":"2025-04-02T09:42:09.764Z","repository":{"id":2077975,"uuid":"3017229","full_name":"rubyworks/main_like_module","owner":"rubyworks","description":"Completing Toplevel's proxy of Object class","archived":false,"fork":false,"pushed_at":"2012-02-28T19:01:35.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T00:42:56.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cloudfoundry/ruby-buildpack","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubyworks.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-20T04:26:34.000Z","updated_at":"2013-10-16T07:49:25.000Z","dependencies_parsed_at":"2022-09-11T10:40:48.302Z","dependency_job_id":null,"html_url":"https://github.com/rubyworks/main_like_module","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/rubyworks%2Fmain_like_module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmain_like_module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmain_like_module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyworks%2Fmain_like_module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyworks","download_url":"https://codeload.github.com/rubyworks/main_like_module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246793065,"owners_count":20834922,"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":[],"created_at":"2024-12-15T01:46:52.684Z","updated_at":"2025-04-02T09:42:09.744Z","avatar_url":"https://github.com/rubyworks.png","language":"Ruby","readme":"# Main Like Module\n\n[![Build Status](https://secure.travis-ci.org/rubyworks/main_like_module.png)](http://travis-ci.org/rubyworks/main_like_module)\n\n\n__DESCRIPTION__\n\nDid you know `main`? Main is actually the special name Ruby gives\nto the toplevel object. This object is very special, it is actually\nin part a proxy object for the Object class itself. But it's only\na partial implementation.\n\nI have long argued that the toplevel object should be replaced with\nan self extended module, e.g.\n\n    module Toplevel\n      extend self\n      # ruby is executed here\n    end\n\nThis would have a couple of significant benefits. First, the toplevel\nwould no longer pollute every other object in the system. And second,\nthe toplevel would be a fully operational module context.\n\nAlas, so far, no avail. But there's always hope. In the mean time,\nwe can at least support the second point by completing the proxy,\nmaking it emulate the Object class context in full. And that's \nexactly what Main Like Module does.\n\n\n__COPYRIGHTS__\n\nCopyright (c) 2009 Rubyworks\n\nMain as Module is distributable in accordance with the BSD-2-Clause license.\n\nSee COPYING.md for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fmain_like_module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyworks%2Fmain_like_module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyworks%2Fmain_like_module/lists"}