.download(url, if_modified_since = nil, range = nil) ⇒ Object
209
210
211
# File 'lib/x2ch.rb', line 209defself.download(url,if_modified_since=nil,range=nil)Agent.download(url,if_modified_since,range)end
.parse(dat) ⇒ Object
213
214
215
216
217
218
219
220
221
222
# File 'lib/x2ch.rb', line 213defself.parse(dat)posts=[]dat.each_line{|l|m=l.match(/^(.+?)<>(.*?)<>(.*?)<>(.+)<>.*$/).to_aifm[0]posts<<Post.new(m[1],m[2],m[3],m[4])end}postsend