Module: Bali::Statics::Authorizer

Included in:
Rules
Defined in:
lib/bali/statics/authorizer.rb

Defined Under Namespace

Modules: HelperFunctions

Instance Method Summary collapse

Instance Method Details

#can?(arg1, arg2 = nil, arg3 = nil) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/bali/statics/authorizer.rb', line 58

def can?(arg1, arg2 = nil, arg3 = nil)
  HelperFunctions.check(:can, self, arg1, arg2, arg3)
end

#cant?(arg1, arg2 = nil, arg3 = nil) ⇒ Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/bali/statics/authorizer.rb', line 62

def cant?(arg1, arg2 = nil, arg3 = nil)
  HelperFunctions.check(:cant, self, arg1, arg2, arg3)
end