Registry / utility / binding-of-caller

binding-of-caller

JSON →
library2.0.0rbrubygemsunverified

Provides the Binding#of_caller method to access bindings from higher up the call stack, intended for debugging only.

gem install binding_of_caller
INSTALL
IMPORT
SIG · BINDING-OF-CALLER
B
binding-of-caller
utilityrubyv2.0.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.

BindingOfCaller
require 'binding_of_caller'

Access a local variable from the caller's binding

require 'binding_of_caller' def inner binding.of_caller(1).eval('x') end x = 42 puts inner
Debug
Known issues
gotchaNot recommended for production use; can lead to security and stability issues.
fix
Use only in debugging or development environments.
affects: >= 0.0.0
Upgrade
Version history
2.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
binding-of-caller — gem install binding-of-caller · libregistry