{"id":17222825,"url":"https://github.com/cheind/rcapture","last_synced_at":"2025-03-25T16:22:02.773Z","repository":{"id":28814887,"uuid":"32338088","full_name":"cheind/rcapture","owner":"cheind","description":"Automatically exported from code.google.com/p/rcapture","archived":false,"fork":false,"pushed_at":"2015-03-31T18:55:35.000Z","size":204,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T14:24:44.712Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheind.png","metadata":{"files":{"readme":"README","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":"2015-03-16T16:28:47.000Z","updated_at":"2020-07-09T00:10:01.000Z","dependencies_parsed_at":"2022-09-05T01:21:09.174Z","dependency_job_id":null,"html_url":"https://github.com/cheind/rcapture","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/cheind%2Frcapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Frcapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Frcapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheind%2Frcapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheind","download_url":"https://codeload.github.com/cheind/rcapture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245496215,"owners_count":20624855,"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-15T04:06:26.932Z","updated_at":"2025-03-25T16:22:02.742Z","avatar_url":"https://github.com/cheind.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n= RCapture\r\nThis package contains the module RCapture, a collection of intuitive methods to capture method invocations.\r\n\r\nRCapture has the following features\r\n- Capturing of instance and class methods of individual objects or entire population of objects.\r\n- Capturing pre or post method invocation.\r\n- Multiple capturings per method.\r\n- Modify method arguments and return values.\r\n- Filter method calls.\r\n- Developed with multithreaded environments in mind.\r\nand many more.\r\n\r\n= Simple Example\r\nThe example below will capture insertion methods of arrays and output statistics upon \r\ninvocation. For more examples see RCapture module documentation.\r\n\r\n require 'rcapture'\r\n \r\n class Array\r\n  include RCapture::Interceptable\r\n end\r\n \r\n Array.capture_post :methods =\u003e [:\u003c\u003c, :push] do |cs|\r\n  puts \"#{cs.args.first} was inserted to array #{cs.sender}\"\r\n end\r\n \r\n [] \u003c\u003c 1 \u003c\u003c 2\r\n [].push 3\r\n \r\n #=\u003e 1 was inserted to array [1]\r\n #=\u003e 2 was inserted to array [1, 2]\r\n #=\u003e 3 was inserted to array [3]\r\n \r\n= Requirements\r\nNon except Ruby. This distribution was tested on Ruby 1.8.6 and Ruby 1.9.1.\r\n \r\n= License\r\nRCapture is Copyright (c) 2010 Christoph Heindl. It is free software, and may be redistributed under the terms \r\nspecified in the {License}[link:files/License.html] file.\r\n\r\n= Support\r\nThe RCapture homepage is http://code.google.com/p/rcapture/. There you will find links report \r\n{issues}[http://code.google.com/p/rcapture/issues/list] (use tag component-rcapture) and latest source code.\r\nYou might find additional help on the author's homepage http://cheind.wordpress.com. For general questions contact the \r\nauthor via email at {christoph.heindl@gmail.com}[mailto:christoph.heindl@gmail.com]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Frcapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheind%2Frcapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheind%2Frcapture/lists"}