{"id":15691771,"url":"https://github.com/ioquatix/boolean","last_synced_at":"2025-05-08T01:15:56.936Z","repository":{"id":62554456,"uuid":"1371857","full_name":"ioquatix/boolean","owner":"ioquatix","description":"Useful methods for working with Booleans","archived":false,"fork":false,"pushed_at":"2017-12-11T23:52:47.000Z","size":9,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T10:02:59.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubygems.org/gems/boolean","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/ioquatix.png","metadata":{"files":{"readme":"README.textile","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":"2011-02-16T00:04:49.000Z","updated_at":"2024-11-11T21:14:03.000Z","dependencies_parsed_at":"2022-11-03T05:15:36.707Z","dependency_job_id":null,"html_url":"https://github.com/ioquatix/boolean","commit_stats":null,"previous_names":["riscfuture/boolean"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fboolean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fboolean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fboolean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ioquatix%2Fboolean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ioquatix","download_url":"https://codeload.github.com/ioquatix/boolean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252173235,"owners_count":21705993,"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-10-03T18:24:37.100Z","updated_at":"2025-05-08T01:15:56.913Z","avatar_url":"https://github.com/ioquatix.png","language":"Ruby","readme":"h1. Boolean -- Additional Boolean-related core extensions\n\n| *Author* | Tim Morgan |\n| *Version* | 1.0 (Feb 15, 2011) |\n| *License* | Released under the MIT license. |\n\nh2. About\n\n*Boolean* adds some helpful methods for working with Ruby's Boolean types,\n@TrueClass@ and @FalseClass@ (the singleton classes whose only instances are\n@true@ and @false@, respectively).\n\nWith *Boolean*, you get a @Boolean@ mixin so you can refer to @true@ and @false@\nunder a common class name:\n\n\u003cpre\u003e\u003ccode\u003e\n  if variable.kind_of?(Boolean) then\n    [ ... ]\n  end\n\u003c/code\u003e\u003c/pre\u003e\n\nYou can also type-cast Ruby objects into their Boolean values:\n\n\u003cpre\u003e\u003ccode\u003e\n  \"string\".to_bool #=\u003e true\n  nil.to_bool #=\u003e false\n\u003c/code\u003e\u003c/pre\u003e\n\nAnd you can parse various Ruby objects to Booleans:\n\n\u003cpre\u003e\u003ccode\u003e\n  \"yes\".parse_bool #=\u003e true\n  \"no\".parse_bool #=\u003e false\n  1.parse_bool =\u003e true\n  0.parse_bool =\u003e false\n\u003c/code\u003e\u003c/pre\u003e\n\n(@parse_bool@ is also aliased as @to_b@ to be consistent with the\n@to_i@/@to_int@ naming paradigm.)\n\nLastly, inline with the @Integer()@ method, you have a @Boolean()@ method:\n\n\u003cpre\u003e\u003ccode\u003e\n  Boolean(\"yes\") #=\u003e true\n  Boolean(\"no\") #=\u003e false\n  Boolean(\"maybe\") #=\u003e ArgumentError\n\u003c/code\u003e\u003c/pre\u003e\n\nh2. Installation and Usage\n\nJust add the gem to your project's @Gemfile@:\n\n\u003cpre\u003e\u003ccode\u003e\ngem 'boolean'\n\u003c/code\u003e\u003c/pre\u003e\n\nAll the features shown in the previous section are now available in your project\ncode.\n\nMore information can be found in the class and method documentation.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioquatix%2Fboolean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fioquatix%2Fboolean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fioquatix%2Fboolean/lists"}