module Redcord
typed: strict
Public Class Methods
_after_initialize!()
click to toggle source
# File lib/redcord.rb, line 25 def self._after_initialize! @@configuration_blks.each do |blk| blk.call(Redcord::Base) end @@configuration_blks.clear end
configure(&blk)
click to toggle source
# File lib/redcord.rb, line 20 def self.configure(&blk) @@configuration_blks << blk end
establish_connections()
click to toggle source
# File lib/redcord/redis_connection.rb, line 113 def self.establish_connections Redcord::Base.descendants.select(&:name).each(&:establish_connection) end