Module: Sprinkle::Policy

Included in:
Object
Defined in:
lib/sprinkle/policy.rb

Defined Under Namespace

Classes: Policy

Constant Summary collapse

POLICIES =
[]

Instance Method Summary collapse

Instance Method Details

#policy(name, options = {}, &block) ⇒ Object



7
8
9
10
11
# File 'lib/sprinkle/policy.rb', line 7

def policy(name, options = {}, &block)
  p = Policy.new(name, options, &block)
  POLICIES << p
  p
end