Class: RubyACL::ACLType

Inherits:
Object
  • Object
show all
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

ACLBasicList, ACLSQLLookup

Class Method Summary collapse

Instance Method Summary collapse

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

.acltypeObject

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