class Array

Public Instance Methods

prettyPrint(result, prefix) click to toggle source
# File lib/rake/extensions.rb, line 29
def prettyPrint(result, prefix)
  if empty? then
    result.puts(prefix+'=emptyArray');
  else
    index = 0;
    each do | aValue |
      if aValue.respond_to?(:prettyPrint) then
        aValue.prettyPrint(result, prefix+'['+index.to_s+']');
      else
        result.puts(prefix+'['+index.to_s+']='+aValue.to_s);
      end
      index += 1;
    end
  end
end