{"id":20269949,"url":"https://github.com/teliosdev/ducky","last_synced_at":"2026-05-12T04:35:07.561Z","repository":{"id":18607949,"uuid":"21813154","full_name":"teliosdev/ducky","owner":"teliosdev","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-14T08:50:46.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T05:35:07.827Z","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/teliosdev.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-07-14T08:49:34.000Z","updated_at":"2014-07-14T14:29:44.000Z","dependencies_parsed_at":"2022-09-25T01:02:27.180Z","dependency_job_id":null,"html_url":"https://github.com/teliosdev/ducky","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teliosdev%2Fducky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teliosdev%2Fducky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teliosdev%2Fducky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teliosdev%2Fducky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teliosdev","download_url":"https://codeload.github.com/teliosdev/ducky/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241753145,"owners_count":20014252,"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-11-14T12:28:09.861Z","updated_at":"2026-05-12T04:35:07.495Z","avatar_url":"https://github.com/teliosdev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ducky\n\nRetreives documentation on any core, stdlib, or gem method.  Core and\nstdlib get the added benefit of checking the inheritance chain; for\ngems, it only checks the class.\n\n## Installation\n\nInstall it yourself:\n\n    $ gem install ducky\n\n## Usage\n\nCheck out\n\n    $ ducky help\n\nThe ducky command line has three subcommands: `core`, `stdlib`, or\n`gem`.  `core` expects 1 or 2 parameters; the first is the method to\nlookup, and the second (optional) is the ruby version to look it up\non.  `stdlib` expects 2 or 3 parameters; the first is the stdlib\nlibrary that the method is under, the second is the method, and\nthe third (optional) is the ruby version to look it up on.  `gem`\nexpects 2 or 3 parameters; the first is the gem the method is under,\nthe second is the method, and the third (optional) is the version of\nthe gem to look it up on (by default, selects the latest version).\n\n### Method Value\n\nmethod values look like `\u003cclass\u003e\u003caccessor\u003e\u003cmethod\u003e`, where `\u003cclass\u003e`\nis the class it's defined on, `\u003caccessor\u003e` is how the method is\naccessed (i.e. one of `.`, `#`, or `::`), and `method` is the method\nname.  `\u003cclass\u003e` is optional (it defaults to `Object`); others are\nnot.  For example, `Kernel#printf`, `Array.new`, `#object_id` are\nall valid, but `printf`, `Kernel`, and `Array.` are not.\n\n### Examples\n\n    \u003e ducky gem antelope \"Antelope::Generator::Base#template\"\n    - (void) template(source, destination) {|content| ... } (protected)\n\n    This method returns an undefined value.\n    Copies a template from the source, runs it through erb (in the context of this\n    class), and then outputs it at the destination. If given a block, it will call\n    the block after the template is run through erb with the content from erb; the\n    result of the block is then used as the content instead.\n\n    Parameters:\n     source (String) — the source file. This should be in source_root.\n\n     destination (String) — the destination file. This will be in Ace::Grammar#output.\n\n    Yield Parameters:\n     content (String) — The content that ERB created.\n\n    Yield Returns:\n     (String) — The new content to write to the output.\n\n    \u003e ducky core \"Array.new\"\n    new(size=0, obj=nil)\n    new(array)\n    new(size) {|index| block }\n\n\n    Returns a new array.\n    # (truncated)\n\n\n## Contributing\n\n1. Fork it ( https://github.com/medcat/ducky/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%2Fteliosdev%2Fducky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteliosdev%2Fducky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteliosdev%2Fducky/lists"}