
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
dup_eval
Advanced tools
This is an alternative to _why's mix_eval C extension. It provides identical functionality to mix_eval as well as the following extra functionality:
Dup_eval is based on coderrr's idea for dupping the binding of a block (http://coderrr.wordpress.com/2008/11/14/making-mixico-thread-safe/)
NOTE: Dup_eval is still in proof of concept stage, use at own risk!
#create our object
o = Object.new
#give it a method
class << o
def hello; print "Hello! "; end
end
#create a method in the current binding
def goodbye; puts "Goodbye!"; end
o.dup_eval { hello; goodbye } #=> "Hello! Goodbye!"
From above, both the methods of the object itself and the binding of the block are available to the block.
#we can also choose which objects we want to eval the block with respect to (we can have more than one)
o1 = Object.new
class << o1; ...define methods here... end
o2 = Object.new
class << o2; ...define methods here... end
o3 = Object.new
class << o3; ...define methods here... end
#create a method in the current binding
def goodbye; puts "Goodbye!"; end
o1.dup_eval_with(o1, o2, o3) { o1_method; o2_method; o3_method; goodbye }
As shown above we can have the block access methods in many objects (as many as we want). The objects may also be either Objects, Classes, or Modules.
FAQs
Unknown package
We found that dup_eval demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.