Help?
---
def fromWeb(site, url)
# get data from website
h = Net::HTTP.new(site, 80)
resp=h.get(url) do
# process data
|line|
if /DGM_navigation/ =~ line do
# decode page lineage
step=Array.new
astep, line = getNextWord(line)
while astep != nil
step.push(astep)
astep, line = getNextWord(line)
end
puts "Page Lineage"
indent = 0
step.each do
|astep|
indent.each do
put " "
end
puts astep
indent += 1
end
end # end DGM_naviation
end # end Net::HTTP.get
end # end def fromWeb
if's syntax is
if cond
..
end
not
if cond do # calls cond with the block
..
end