C:>ruby -e “require ‘turn’”
Loaded suite .
==============================================================================
pass: 0, fail: 0, error: 0
total: 0 tests with 0 assertions in 0.0 seconds
==============================================================================
What am I doing wrong?
The problem is that unfortunately the -r option doesn’t use the
hookable require method, but rather the C function that require
delegates to (which isn’t a Ruby method, so it’s not overrideable).
So, you’re not doing anything wrong.
The problem is that unfortunately the -r option doesn’t use the
hookable require method, but rather the C function that require
delegates to (which isn’t a Ruby method, so it’s not overrideable).
So, you’re not doing anything wrong.
Hm, could it be altered to use the hookable require method? If so, what
would be the downside?
Dan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.