# File lib/nicovideo/newarrival.rb, line 16 def parse(page) result_xpath = page/'//div[@class="cmn_thumb_R"]//p[@class="TXT12"]/a[@class="video"]' @videos = result_xpath.inject([]) do |arr, v| vp = VideoPage.new(@agent, v.attributes['href'].sub(/watch\/(\w+)$/,'\1')) vp.title = v.inner_html arr << vp end end