{"id":19342286,"url":"https://github.com/matt-taylor/class_composer","last_synced_at":"2026-02-12T04:32:54.714Z","repository":{"id":40751171,"uuid":"507144315","full_name":"matt-taylor/class_composer","owner":"matt-taylor","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-18T22:10:51.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T17:21:54.298Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matt-taylor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-24T21:07:28.000Z","updated_at":"2024-12-18T22:08:32.000Z","dependencies_parsed_at":"2024-12-18T21:30:34.785Z","dependency_job_id":"c4dade92-55fd-46b1-a4c7-b9fbcc6b6ab1","html_url":"https://github.com/matt-taylor/class_composer","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"def6dd623ba2155ea427626969412504cb0b73c0"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-taylor%2Fclass_composer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-taylor%2Fclass_composer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-taylor%2Fclass_composer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-taylor%2Fclass_composer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matt-taylor","download_url":"https://codeload.github.com/matt-taylor/class_composer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644212,"owners_count":21138570,"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-10T03:34:23.136Z","updated_at":"2026-02-12T04:32:54.686Z","avatar_url":"https://github.com/matt-taylor.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClassComposer\n\nBasic configuration is relatively simple but tedious to do if done multiple times. throughout a project. The intention of `ClassComposer` is to DRY up as much of that configuration as possible to allow you to just write code.\n\n## Installation\n\n`ClassComposer` is hosted on RubyGems https://rubygems.org/gems/class_composer\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'class_composer'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install class_composer\n\n## Usage\n\n### Basic Add Composer\n\n`add_composer` is the driving method behind the composer gem. It will\n- Add a setter Method\n- Add a getter Method\n- Add instance variable\n- Add validation Method\n\nIn short, Composer will behave similarly to `attr_accessor`\n\nCheck out [Basic Composer](docs/basic_composer.md) for usage details\n\n### Usage with Arrays\n\nComposer allows interactions with arrays in a native way. When the allowed type is `Array`, ClassComposer will add a custom method `\u003c\u003c` to overwrite the native Array method. This ensures that ClassComposer Validations run when adding to the Array.\n\nFor more information, check out [Array Usage](docs/array_usage.md)\n\n### Freezing Objects\n\nSometimes you want freeze an instance of a Configuration. Freezing it will make it immutable from changes Users may try to make.\n\nFor more information, check out [Freezing Class Composer Instances](docs/freezing.md)\n\n### Complex usage: Composer Blocking\n\nComposer blocking builds on top of the [Basic Composer](docs/basic_composer.md) to help with nested Configurations that include `ClassCompser::Generator`.\nNested configuration's allow complex configurations for entire projects to work seamlessly together.\n\nFor Examples and use cases, check out [Composer Blocking](docs/composer_blocking.md)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`bundle exec rspec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/matt-taylor/class_composer.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-taylor%2Fclass_composer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatt-taylor%2Fclass_composer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-taylor%2Fclass_composer/lists"}