I would seem there is no way to jack into the update of
$LOADED_FEATURES?
class << $LOADED_FEATURES
methods = public_instance_methods(true)
methods.each do |m|
alias_method “#{m}", m
define_method(m) do |*a, &b|
p m, *a
send("#{m}”, *a, &b)
end
end
end
require ‘ostruct’
=> true
?
On Jul 15, 2011, at 11:22 AM, Intransition wrote:
I would seem there is no way to jack into the update of $LOADED_FEATURES?
Not from ruby as $LOADED_FEATURES is not updated through rb_gv_set() or
rb_gvar_set()
On Jul 20, 8:33pm, Eric H. [email protected] wrote:
On Jul 15, 2011, at 11:22 AM, Intransition wrote:
I would seem there is no way to jack into the update of $LOADED_FEATURES?
Not from ruby as $LOADED_FEATURES is not updated through rb_gv_set() or
rb_gvar_set()
Thanks.
I ended up just requiring that the user put there requires in a
special block so I could capture the changes to $LOADED_FEATURES.
See http://rubyworks.github.com/autoreload/