Method: RSQL::EvalContext#reload
- Defined in:
- lib/rsql/eval_context.rb
#reload ⇒ Object
145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/rsql/eval_context.rb', line 145 def reload # some files may be loaded by other files, if so, we don't want to # reload them again here @loaded_fns.each{|fn| @loaded_fns_state[fn] = nil} @loaded_fns.each{|fn| self.load(fn, :skip_init_registrations) if @loaded_fns_state[fn] == nil} # load up the inits after all the normal registrations are ready call_init_registrations # report all the successfully loaded ones loaded = [] @loaded_fns.each{|fn,state| loaded << fn if @loaded_fns_state[fn] == :loaded} puts "loaded: #{loaded.inspect}" end |