Registry / utility / after-do

after-do

JSON →
library0.4.0rbrubygemsunverified

after_do is a gem that lets you execute a block of your choice after or before a specific method is called on a class, inspired by Aspect Oriented Programming.

gem install after_do
INSTALL
IMPORT
SIG · AFTER-DO
A
after-do
utilityrubyv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AfterDo
require 'after_do'

Add a before hook to a method.

require 'after_do' class MyClass def my_method puts "original" end end AfterDo.before(MyClass, :my_method) { puts "before" } MyClass.new.my_method
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
Meta
1
OpenAI (training)
1
Resources
after-do — gem install after-do · libregistry