Sha256: 5c72d2f612b4805c33707f6ae6c07553fdc47ecedb580a11f07c1eeb8ac63c9d

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

require 'stance/version'
require 'stance/engine'

module Stance
  class EventNotFound < StandardError; end

  mattr_accessor :disabled_events
  @@disabled_events = []

  def self.disable(*events)
    disabled_events.concat events
    yield
  ensure
    self.disabled_events -= events
  end

  autoload :Events, 'stance/events'
  autoload :Event, 'stance/event'
  autoload :Eventable, 'stance/eventable'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stance-0.3.0 lib/stance.rb