Class: EndpointSecurity::CSFlags

Inherits:
Data
  • Object
show all
Defined in:
lib/endpoint_security/object_model.rb

Overview

Code-signing status flags for a process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#value ⇒ Object (readonly)

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



26
27
28
# File 'lib/endpoint_security/object_model.rb', line 26

def value
  @value
end

Instance Method Details

#include?(flag) ⇒ Boolean

Returns whether flag is present.

Returns:

  • (Boolean) —

    whether flag is present



28
# File 'lib/endpoint_security/object_model.rb', line 28

def include?(flag) = value.anybits?(CS_FLAG_MASKS.fetch(flag.to_sym))