{"id":19316752,"url":"https://github.com/maxim/ternary_types","last_synced_at":"2026-06-09T20:31:21.490Z","repository":{"id":25136025,"uuid":"28558126","full_name":"maxim/ternary_types","owner":"maxim","description":"Provides ternary singletons True, False, and Maybe with ==,!,\u0026,|,^ operators implemented according to three-value logic.","archived":false,"fork":false,"pushed_at":"2023-01-08T18:46:37.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-05T04:15:13.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/maxim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-28T09:18:03.000Z","updated_at":"2023-01-08T17:29:11.000Z","dependencies_parsed_at":"2023-01-14T02:11:28.749Z","dependency_job_id":null,"html_url":"https://github.com/maxim/ternary_types","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/maxim/ternary_types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxim%2Fternary_types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxim%2Fternary_types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxim%2Fternary_types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxim%2Fternary_types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxim","download_url":"https://codeload.github.com/maxim/ternary_types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxim%2Fternary_types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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-11-10T01:12:35.486Z","updated_at":"2026-06-09T20:31:21.471Z","avatar_url":"https://github.com/maxim.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ternary_types\n\nUse True/False/Maybe singletons to evaluate 3-value logic for such great fun.\n\n## Usage\n\n```irb\nrequire 'ternary_types'\n\nT = TernaryTypes::True.instance\nM = TernaryTypes::Maybe.instance\nF = TernaryTypes::False.instance\n\n!T # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\n!M # =\u003e #\u003cTernaryTypes::Maybe:0x007feccc7b61f8\u003e\nT == F # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\nM == T # =\u003e #\u003cTernaryTypes::Maybe:0x007feccc7b61f8\u003e\nM == M # =\u003e #\u003cTernaryTypes::Maybe:0x007feccc7b61f8\u003e\nT == T # =\u003e #\u003cTernaryTypes::True:0x007feccc7bc670\u003e\nT \u0026 F # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\nM \u0026 T # =\u003e #\u003cTernaryTypes::Maybe:0x007feccc7b61f8\u003e\nT | F # =\u003e #\u003cTernaryTypes::True:0x007feccc7bc670\u003e\nT ^ T # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\n\ninclude TernaryTypes::Coersion\n\nTernary(true) # =\u003e #\u003cTernaryTypes::True:0x007feccc7bc670\u003e\nTernary(:foo) # =\u003e #\u003cTernaryTypes::True:0x007feccc7bc670\u003e\n\nTernary(false) # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\nTernary(nil) # =\u003e #\u003cTernaryTypes::False:0x007feccc7c4938\u003e\n\nTernary(:maybe) # =\u003e #\u003cTernaryTypes::Maybe:0x007feccc7b61f8\u003e\n```\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ternary_types'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ternary_types\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/ternary_types/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxim%2Fternary_types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxim%2Fternary_types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxim%2Fternary_types/lists"}