Sha256: 135d28dda88867f62d9da27f8bce50e9fe286a8b1302719e0dd14412dcf4eab6

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

require_relative "p2p_streams_channel/version"
require_relative "p2p_streams_channel/engine"
require_relative "p2p_streams_channel/cache"
require_relative "p2p_streams_channel/session"
require_relative "p2p_streams_channel/session_handler"

require_relative  "rails/generators/p2p_streams_channel/install_generator"

module P2pStreamsChannel
  class Error < StandardError; end

  class Configuration
    attr_accessor :store
  end

  mattr_reader :configs, default: Configuration.new

  def config
    yield(configs)
  end
  module_function :config

  def store
      configs.store || Rails.cache
  end
  module_function :store
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
p2p_streams_channel-0.0.3 lib/p2p_streams_channel.rb
p2p_streams_channel-0.0.2 lib/p2p_streams_channel.rb