Class: Caper::SockAddrFamily
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Caper::SockAddrFamily
- Includes:
- FFI::DRY::StructHelper
- Defined in:
- lib/caper/bsd.rb
Overview
Common abstract superclass for all sockaddr struct classes
Direct Known Subclasses
Instance Method Summary collapse
-
#lookup_family ⇒ Object
returns an address family name for the :family struct member value.
Instance Method Details
#lookup_family ⇒ Object
returns an address family name for the :family struct member value
25 26 27 |
# File 'lib/caper/bsd.rb', line 25 def lookup_family AF[ self[:family] ] end |