Class: X2CH::Subject
- Inherits:
-
Object
- Object
- X2CH::Subject
- Defined in:
- lib/x2ch.rb
Class Method Summary collapse
Class Method Details
.download(url) ⇒ Object
192 193 194 |
# File 'lib/x2ch.rb', line 192 def self.download(url) Agent.download(url) end |
.parse(url, subject) ⇒ Object
196 197 198 199 200 201 202 203 204 205 |
# File 'lib/x2ch.rb', line 196 def self.parse(url, subject) threads = [] subject.each_line{|l| m = l.match(/^(\d+\.dat)<>(.+)\((\d+)\)$/).to_a if m[0] threads << Thread.new(url, m[1], m[2], m[3].to_i) end } threads end |