Registry / utility / rubyinline

rubyinline

JSON →
library3.14.4rbrubygemsunverified

Inline allows you to write foreign code (e.g., C/C++) within your Ruby code, automatically building and loading it when necessary.

gem install RubyInline
INSTALL
IMPORT
SIG · RUBYINLINE
R
rubyinline
utilityrubyv3.14.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Inline
require 'inline'

Inline C code in Ruby

require 'inline' class MyClass inline do |builder| builder.c 'int add(int a, int b) { return a + b; }' end end MyClass.new.add(1, 2)
Debug
Known issues
gotchaRequires a C compiler (e.g., gcc) to be installed
fix
Install a C compiler like gcc or clang
affects: >= 3.0.0
Upgrade
Version history
3.14.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
rubyinline — gem install rubyinline · libregistry