Sha256: 76dc32d9ed997d253db84ce85c4054d86d976a0fcee14cbe4b8bd54b40f89f75

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 Bytes

Contents

require 'wisper'
require 'yaps/actions/creation'
require 'yaps/actions/destruction'
require 'yaps/actions/updation'
require 'yaps/configuration'
require 'yaps/publisher'
require 'yaps/subscriber'
require "yaps/version"

begin
  require "pry"
rescue LoadError
end

module Yaps
  class << self
    attr_writer :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  def self.with_pushlisher_enable &block
    previous = configuration.enable
    configuration.enable = true
    block.call
    configuration.enable = previous
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yaps-0.1.0 lib/yaps.rb
yaps-0.0.2 lib/yaps.rb