Module: BSD::Capsicum::IO

Included in:
IO
Defined in:
lib/bsd/capsicum.rb

Overview

This module is included into Ruby’s IO class

Instance Method Summary collapse

Instance Method Details

#permit!(*caps, scope: :rights) ⇒ Object

Limit the capabilities of a file descriptor

Parameters:

  • caps (Array<Symbol, Integer>)

    An allowed set of capabilities

  • scope (Symbol) (defaults to: :rights)

    The scope of the permit, either nil or :fcntl

See Also:



92
93
94
# File 'lib/bsd/capsicum.rb', line 92

def permit!(*caps, scope: :rights)
  BSD::Capsicum.permit!(self, *caps, scope:)
end