Module: Kindergarten

Defined in:
lib/kindergarten.rb,
lib/kindergarten/event.rb,
lib/kindergarten/purpose.rb,
lib/kindergarten/sandbox.rb,
lib/kindergarten/version.rb,
lib/kindergarten/perimeter.rb,
lib/kindergarten/exceptions.rb,
lib/kindergarten/governesses.rb,
lib/kindergarten/orm/governess.rb,
lib/kindergarten/governesses/easy_governess.rb,
lib/kindergarten/governesses/head_governess.rb,
lib/kindergarten/governesses/strict_governess.rb

Defined Under Namespace

Modules: Governesses, ORM Classes: AccessDenied, EasyGoverness, Event, HeadGoverness, Perimeter, Purpose, RinsedHash, Sandbox, ScrubbedHash, StrictGoverness

Constant Summary collapse

VERSION =
"0.2.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.warningsObject

Returns the value of attribute warnings.



23
24
25
# File 'lib/kindergarten.rb', line 23

def warnings
  @warnings
end

Class Method Details

.sandbox(child) ⇒ Object



24
25
26
# File 'lib/kindergarten.rb', line 24

def sandbox(child)
  Kindergarten::Sandbox.new(child)
end

.warning(msg) ⇒ Object



28
29
30
31
32
33
# File 'lib/kindergarten.rb', line 28

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

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