{"id":19237186,"url":"https://github.com/falm/rdecorator","last_synced_at":"2025-06-11T00:35:10.181Z","repository":{"id":56891179,"uuid":"75458433","full_name":"falm/rdecorator","owner":"falm","description":"yet another ruby decorator","archived":false,"fork":false,"pushed_at":"2017-02-17T02:28:46.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T05:19:35.005Z","etag":null,"topics":["decorators","ruby"],"latest_commit_sha":null,"homepage":"","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/falm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-03T07:11:19.000Z","updated_at":"2018-09-03T03:14:50.000Z","dependencies_parsed_at":"2022-08-21T00:50:29.457Z","dependency_job_id":null,"html_url":"https://github.com/falm/rdecorator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Frdecorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Frdecorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Frdecorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Frdecorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/falm","download_url":"https://codeload.github.com/falm/rdecorator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/falm%2Frdecorator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259176375,"owners_count":22817181,"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":["decorators","ruby"],"created_at":"2024-11-09T16:25:14.906Z","updated_at":"2025-06-11T00:35:10.151Z","avatar_url":"https://github.com/falm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDecorator\n[![Build Status](https://travis-ci.org/falm/rdecorator.svg?branch=master)](https://travis-ci.org/falm/rdecorator) [![Coverage Status](https://coveralls.io/repos/github/falm/rdecorator/badge.svg?branch=master)](https://coveralls.io/github/falm/rdecorator?branch=master) [![Dependency Status](https://gemnasium.com/badges/github.com/falm/rdecorator.svg)](https://gemnasium.com/github.com/falm/rdecorator) [![Code Climate](https://codeclimate.com/github/falm/rdecorator/badges/gpa.svg)](https://codeclimate.com/github/falm/rdecorator)\n\nRdecorator is an Pyhton like decorator use for AOP pattern programming\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rdecorator'\n```\n\nAnd then execute:\n\n  $ bundle\n\n## Usage\n\n### Basic\n```ruby\nclass Language\n  extend Rdecorator\n\n  def best(this, args)\n    'best Language' + this.call(args)\t\n  end\n\n  wrap :best\n  def ruby\n    'ruby'\t\n  end\nend\n\nLanguage.new.ruby #=\u003e best Language ruby\n\n```\n\n### Decorator Class\n```ruby\nclass Decorator \n\n  include Rdecorator\n\n  def call\n    'say fucking' + @this.call(*@args)\n  end\nend\n\nclass DummyClass\n\n  decorator Decorator\n  def say(hello)\n    'hello'\t\n  end\n\nend\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/falm/rdecorator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalm%2Frdecorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffalm%2Frdecorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffalm%2Frdecorator/lists"}