Adding html break to each line in Ruby

What I basically have here is a short ruby script (I just started learning) and the purpose of it is to spider-crawl a website and return all the links it finds. @sites = Array.new Anemone.crawl("http://www.nemecisco.com/") do |anemone| anemone.on_every_page do |page| puts page.url @sites< You may notice that the array is composed of the pages name + something else. I figured a break tag would be enough but Ruby doesn't like this and gives a bad URI exception. Has anyone any ideas on how to put a line break after each site statement. In the HTML declaration? in the array? Any and all help appreciated.

以上就是Adding html break to each line in Ruby的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏