{"id":16687998,"url":"https://github.com/danielpclark/demisyn","last_synced_at":"2025-07-11T16:15:44.820Z","repository":{"id":62556998,"uuid":"49588970","full_name":"danielpclark/demisyn","owner":"danielpclark","description":"With demisyn you'll never need to dot your methods again.","archived":false,"fork":false,"pushed_at":"2017-03-20T19:52:16.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T13:13:19.284Z","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/danielpclark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-13T17:12:43.000Z","updated_at":"2017-03-20T19:52:18.000Z","dependencies_parsed_at":"2022-11-03T06:15:28.371Z","dependency_job_id":null,"html_url":"https://github.com/danielpclark/demisyn","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/danielpclark/demisyn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fdemisyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fdemisyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fdemisyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fdemisyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielpclark","download_url":"https://codeload.github.com/danielpclark/demisyn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielpclark%2Fdemisyn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261592495,"owners_count":23181933,"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-12T15:26:22.820Z","updated_at":"2025-07-11T16:15:44.798Z","avatar_url":"https://github.com/danielpclark.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demisyn\n[![Build Status](https://travis-ci.org/danielpclark/demisyn.svg)](https://travis-ci.org/danielpclark/demisyn)\n\nWith demisyn you'll never need to dot your methods again. *wink* *wink*\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'demisyn'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install demisyn\n\n## Usage\n\nAnywhere you want to use this (within Objects) you must first include this\nin the scope of its use.\n\n```ruby\nusing Demisyn\n```\n\nThen you can evaluate strings and arrays of strings as if they were consecutive methods.\n\n### Examples\n\n```ruby\n~\"'asdf' reverse split('s') join capitalize\"\n# =\u003e \"Fda\"\n~%w['asdf' reverse split('s') join capitalize]\n# =\u003e \"Fda\"\n\n~\"'asdf' pikachu split('s') join capitalize\"\n#NoMethodError: undefined method\n~%w['asdf' pikachu split('s') join capitalize]\n#NoMethodError: undefined method\n```\nNote to execute Demisyn in this fashion you must use the tilde before an Array or String.\n\n#### Ruby 2.3.0\n\nSince Ruby 2.3.0 has added the safe navigation operator I've made that available for your\nmethod chain.  Instead of using tilde before a String or Array use the minus symbol.\n\n```ruby\n-\"'asdf' reverse split('s') join capitalize\"\n# =\u003e \"Fda\"\n\n-\"'asdf'[7] reverse split('s') join capitalize\"\n# =\u003e nil\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/danielpclark/demisyn. This project is intended to be a safe, welcoming space for collaboration.\n\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fdemisyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielpclark%2Fdemisyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielpclark%2Fdemisyn/lists"}