Class: Simple2ch::Dat
- Inherits:
-
Object
- Object
- Simple2ch::Dat
- Defined in:
- lib/simple2ch/dat.rb
Instance Attribute Summary collapse
-
#thread_key ⇒ String
readonly
スレッドキー.
Instance Method Summary collapse
-
#initialize(thre) ⇒ Dat
constructor
A new instance of Dat.
-
#kako_log? ⇒ Boolean
Datを解析して過去ログかどうかを返す.
-
#reses ⇒ Array<Res>
Datを解析して、レスを返す.
Constructor Details
#initialize(thre) ⇒ Dat
Returns a new instance of Dat.
7 8 9 10 11 12 13 |
# File 'lib/simple2ch/dat.rb', line 7 def initialize(thre) @thre = thre @thread_key = thre.thread_key @data = nil @reses = nil @f_kako_log = nil end |
Instance Attribute Details
#thread_key ⇒ String (readonly)
Returns スレッドキー.
4 5 6 |
# File 'lib/simple2ch/dat.rb', line 4 def thread_key @thread_key end |
Instance Method Details
#kako_log? ⇒ Boolean
Datを解析して過去ログかどうかを返す
24 25 26 27 |
# File 'lib/simple2ch/dat.rb', line 24 def kako_log? parse_dat if @f_kako_log.nil? @f_kako_log end |
#reses ⇒ Array<Res>
Datを解析して、レスを返す
17 18 19 20 |
# File 'lib/simple2ch/dat.rb', line 17 def reses parse_dat unless @reses @reses end |