Description
Lets Ruby code call functions from native shared libraries through a foreign function interface. It is useful when a Ruby project needs operating-system APIs, C libraries, or performance-critical native components.
Native calls can bypass Ruby's usual safety expectations. Validate argument types, memory ownership, library paths, and ABI compatibility before using it with untrusted input or privileged code.