Class: Gio::SimplePermission
- Inherits:
-
Permission
- Object
- Permission
- Gio::SimplePermission
- Defined in:
- (unknown)
Overview
GSimplePermission is a trivial implementation of [classGio.Permission]
that represents a permission that is either always or never allowed. The
value is given at construction and doesn’t change.
Calling [methodGio.Permission.acquire] or [methodGio.Permission.release]
on a GSimplePermission will result in errors.
Instance Method Summary collapse
-
#initialize(allowed) ⇒ Gio::Permission
constructor
Creates a new #GPermission instance that represents an action that is either always or never allowed.
Methods inherited from Permission
#acquire, #acquire_async, #acquire_finish, #allowed, #allowed=, #allowed?, #can_acquire, #can_acquire=, #can_acquire?, #can_release, #can_release=, #can_release?, #impl_update, #release, #release_async, #release_finish
Constructor Details
#initialize(allowed) ⇒ Gio::Permission
Creates a new #GPermission instance that represents an action that is either always or never allowed.