Sha256: d6f2bee31eb5abc6918790bfe1d9fc1abc0f241fbce58f6d2861bb3878069e8f

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'cancan/ability'
require 'cancan/rule'
require 'cancan/exceptions'

require 'active_support/core_ext'

require "kindergarten/version"
require "kindergarten/sandbox"
require "kindergarten/purpose"
require "kindergarten/event"
require "kindergarten/perimeter"
require "kindergarten/governesses"
require "kindergarten/exceptions"

module Kindergarten
  class << self
    attr_accessor :warnings
    def sandbox(child)
      Kindergarten::Sandbox.new(child)
    end

    def warning(msg)
      return if @warnings == false
      return warning("Empty warning message") if msg.nil?

      warn("WARNING: #{msg}")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kindergarten-0.2.0 lib/kindergarten.rb