module Bbs
Constants
- BOARD_CLASSES
Bbs.create_board(url)
→Shitaraba::Board
|Nichan::Board
Bbs.create_thread(url)
→Shitaraba::Thread
|Nichan::Thread
- THREAD_CLASSES
Public Class Methods
create_board(url)
click to toggle source
# File lib/bbiff/bbs_reader.rb, line 419 def create_board(url) BOARD_CLASSES.each do |klass| board = klass.from_url(url) return board if board end return nil end
create_thread(url)
click to toggle source
# File lib/bbiff/bbs_reader.rb, line 428 def create_thread(url) THREAD_CLASSES.each do |klass| thread = klass.from_url(url) return thread if thread end return nil end
Private Instance Methods
create_board(url)
click to toggle source
# File lib/bbiff/bbs_reader.rb, line 419 def create_board(url) BOARD_CLASSES.each do |klass| board = klass.from_url(url) return board if board end return nil end
create_thread(url)
click to toggle source
# File lib/bbiff/bbs_reader.rb, line 428 def create_thread(url) THREAD_CLASSES.each do |klass| thread = klass.from_url(url) return thread if thread end return nil end