Method: Console::Resolver#resolve

Defined in:
lib/console/resolver.rb

#resolve(trace_point) ⇒ Object

Invoked by the trace point when a class is defined.

This will call the block associated with the class name, if any, and remove it from the list of names to resolve.

If the list of names is empty, the trace point will be disabled.



105
106
107
108
109
110
111
112
113
# File 'lib/console/resolver.rb', line 105

def resolve(trace_point)
	if block = @names.delete(trace_point.self.to_s)
		block.call(trace_point.self)
	end
	
	if @names.empty?
		@trace_point.disable
	end
end