Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
= RCapture This package contains the module RCapture, a collection of intuitive methods to capture method invocations.
RCapture has the following features
= Simple Example The example below will capture insertion methods of arrays and output statistics upon invocation. For more examples see RCapture module documentation.
require 'rcapture'
class Array include RCapture::Interceptable end
Array.capture_post :methods => [:<<, :push] do |cs| puts "#{cs.args.first} was inserted to array #{cs.sender}" end
[] << 1 << 2 [].push 3
#=> 1 was inserted to array [1] #=> 2 was inserted to array [1, 2] #=> 3 was inserted to array [3]
= Requirements Non except Ruby. This distribution was tested on Ruby 1.8.6 and Ruby 1.9.1.
= License RCapture is Copyright (c) 2010 Christoph Heindl. It is free software, and may be redistributed under the terms specified in the {License}[link:files/License.html] file.
= Support The RCapture homepage is http://code.google.com/p/cheind-blog-files. There you will find links report {issues}[http://code.google.com/p/cheind-blog-files/issues/list] (use tag component-rcapture) and latest source code. You might find additional help on the author's homepage http://cheind.wordpress.com. For general questions contact the author via email at {christoph.heindl@gmail.com}[mailto:christoph.heindl@gmail.com]
FAQs
Unknown package
We found that rcapture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.