Class: Checkpoint::Resource::AnyEntity
- Inherits:
-
Object
- Object
- Checkpoint::Resource::AnyEntity
- Defined in:
- lib/checkpoint/resource/any_entity.rb
Overview
Special class to represent any entity of any type. This is used for zone-/system-wide grants or checks. It is basically so AllOfAnyType can have an entity rather than a nil.
Wildcards or null objects typically have somewhat strange semantics, and this is no exception. It will compare as eql? and == to any object.
Instance Method Summary collapse
-
#== ⇒ Object
Always returns true; this wildcard is “equal” to any object.
-
#eql? ⇒ Boolean
Always returns true; this wildcard is “equal” to any object.
Instance Method Details
#== ⇒ Object
Always returns true; this wildcard is “equal” to any object. return [Boolean] true
20 21 22 |
# File 'lib/checkpoint/resource/any_entity.rb', line 20 def ==(*) true end |
#eql? ⇒ Boolean
Always returns true; this wildcard is “equal” to any object. return [Boolean] true
14 15 16 |
# File 'lib/checkpoint/resource/any_entity.rb', line 14 def eql?(*) true end |