module Fourchan::Kit
Constants
- VERSION
Public Class Methods
fetch_fourchan_boards()
click to toggle source
Updates the list of boards and returns an array of the boards.
@return [Array] name of all boards
# File lib/fourchan/kit.rb, line 25 def self.fetch_fourchan_boards puts "Fetching all 4chan boards" $fourchan_boards = [] Fourchan::Kit::API.get_boards.each do |board| $fourchan_boards << board["board"] end $fourchan_boards end
fourchan_boards()
click to toggle source
Returns an array of all boards' title, such as b, g, fit etc.
@return [Array] name of all boards
# File lib/fourchan/kit.rb, line 16 def self.fourchan_boards fetch_fourchan_boards if $fourchan_boards.empty? $fourchan_boards end