Class: RubyACL::ACLType
- Inherits:
-
Object
- Object
- RubyACL::ACLType
- Defined in:
- lib/rubyacl.rb
Overview
Defines the ACLType interface. Each ACL class must define a unique (within the running program) return for ACLType.acltype().
Direct Known Subclasses
Class Method Summary collapse
-
.acltype ⇒ Object
This is called when the acl is registered with RubyACL::ACLHandler, and is used as the type of the acl when defining ACL’s based off of this class.
Instance Method Summary collapse
-
#check(context) ⇒ Object
Check returns true if access should be granted given
context
, false otherwise. -
#initialize(data) ⇒ ACLType
constructor
A new instance of ACLType.
Constructor Details
#initialize(data) ⇒ ACLType
Returns a new instance of ACLType.
221 222 |
# File 'lib/rubyacl.rb', line 221 def initialize(data) end |
Class Method Details
.acltype ⇒ Object
This is called when the acl is registered with RubyACL::ACLHandler, and is used as the type of the acl when defining ACL’s based off of this class.
216 217 218 |
# File 'lib/rubyacl.rb', line 216 def ACLType.acltype() return(nil) end |
Instance Method Details
#check(context) ⇒ Object
Check returns true if access should be granted given context
, false otherwise. In general context
is a Hash that contains a key for each type of ACL that might be used.
227 228 229 |
# File 'lib/rubyacl.rb', line 227 def check(context) return(false) end |