class Checkpoint::Resource::AnyEntity
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.
Public Instance Methods
==(*)
click to toggle source
Always returns true; this wildcard is “equal” to any object. return [Boolean] true
# File lib/checkpoint/resource/any_entity.rb, line 20 def ==(*) true end
eql?(*)
click to toggle source
Always returns true; this wildcard is “equal” to any object. return [Boolean] true
# File lib/checkpoint/resource/any_entity.rb, line 14 def eql?(*) true end