{"id":31839810,"url":"https://github.com/theswedishdev/has_keyword_argument","last_synced_at":"2025-10-12T04:22:26.684Z","repository":{"id":56876026,"uuid":"71930187","full_name":"theswedishdev/has_keyword_argument","owner":"theswedishdev","description":"A gem for use with MiniTest to check if certain keyword arguments are used","archived":false,"fork":false,"pushed_at":"2016-11-12T20:45:37.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T20:30:03.292Z","etag":null,"topics":["keyword-arguments","minitest","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/has_keyword_argument","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/theswedishdev.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}},"created_at":"2016-10-25T19:09:46.000Z","updated_at":"2017-06-02T16:06:59.000Z","dependencies_parsed_at":"2022-08-20T11:30:42.624Z","dependency_job_id":null,"html_url":"https://github.com/theswedishdev/has_keyword_argument","commit_stats":null,"previous_names":["itggot-joel-eriksson/has_keyword_argument"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theswedishdev/has_keyword_argument","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theswedishdev%2Fhas_keyword_argument","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theswedishdev%2Fhas_keyword_argument/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theswedishdev%2Fhas_keyword_argument/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theswedishdev%2Fhas_keyword_argument/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theswedishdev","download_url":"https://codeload.github.com/theswedishdev/has_keyword_argument/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theswedishdev%2Fhas_keyword_argument/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010255,"owners_count":26084718,"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":["keyword-arguments","minitest","ruby"],"created_at":"2025-10-12T04:22:23.009Z","updated_at":"2025-10-12T04:22:26.677Z","avatar_url":"https://github.com/theswedishdev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# has_keyword_argument?\n[![Gem Version](https://badge.fury.io/rb/has_keyword_argument.svg)](https://badge.fury.io/rb/has_keyword_argument)\n[![Gem Total downloads](https://img.shields.io/gem/dt/has_keyword_argument.svg)](https://rubygems.org/gems/has_keyword_argument)\n[![Gem Stable downloads](https://img.shields.io/gem/dv/has_keyword_argument/stable.svg)](https://rubygems.org/gems/has_keyword_argument)\n[![License](https://img.shields.io/github/license/itggot-joel-eriksson/has_keyword_argument.svg)](https://github.com/itggot-joel-eriksson/has_keyword_argument/blob/master/LICENSE.md)\n\n## Installation\n```\ngem install has_keyword_argument\n```\n\n## API\n\n`#has_keyword_argument?(*keyword)`\n\n_lib/main.rb_\n```ruby\ndef greeting(greeting:, name:)\n  return \"#{greeting}, #{name}!\"\nend\n\ndef hello(name:)\n  return \"Hello #{name}\"\nend\n```\n\n_test/test_main.rb_\n```ruby\nrequire 'has_keyword_argument'\n\nrequire_relative '../lib/main'\n\n:hello.has_keyword_argument?(:name)\n\n:greeting.has_keyword_argument?(:greeting, :name)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheswedishdev%2Fhas_keyword_argument","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheswedishdev%2Fhas_keyword_argument","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheswedishdev%2Fhas_keyword_argument/lists"}