class Hash

Public Instance Methods

cloneData() click to toggle source
# File lib/rake/extensions.rb, line 9
def cloneData()
end
prettyPrint(result, prefix) click to toggle source
# File lib/rake/extensions.rb, line 12
def prettyPrint(result, prefix)
  if empty? then
    result.puts(prefix+'=emptyHash');
  else 
    keys.sort{ |x,y| x.to_s <=> y.to_s }.each do | aKey |
      aValue = self[aKey];
      if aValue.respond_to?(:prettyPrint) then
        aValue.prettyPrint(result, prefix+'.'+aKey.to_s);
      else
        result.puts(prefix+'.'+aKey.to_s+"="+aValue.to_s);
      end
    end
  end
end