debug(depth = 0)
public
Conveys debug
information to the user.
@param [Integer] depth the current depth of the
resolution process. @return [void]
Show source
def debug(depth = 0)
if debug?
debug_info = yield
debug_info = debug_info.inspect unless debug_info.is_a?(String)
output.puts debug_info.split("\n").map { |s| ' ' * depth + s }
end
end