Sha256: 1eb578806f075650c90e9530b6972ee955430f08706fa68050d6423b08ed5b91

Contents?: true

Size: 274 Bytes

Versions: 4

Compression:

Stored size: 274 Bytes

Contents

require_relative '../spectre'

require 'ostruct'

module Spectre
  module Bag
    class << self
      @@bag

      def bag
        @@bag
      end
    end

    Spectre.register do |_config|
      @@bag = OpenStruct.new
    end

    Spectre.delegate :bag, to: self
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spectre-core-1.14.2 lib/spectre/bag.rb
spectre-core-1.14.1 lib/spectre/bag.rb
spectre-core-1.14.0 lib/spectre/bag.rb
spectre-core-1.13.0 lib/spectre/bag.rb