in ruby this work, in jruby doesn’t:
A = enum( :foo, :bar ) class Whatever < FFI::ManagedStruct layout :name, A end
In the ffi/types.rb I see there is no enum defined (but in the
from the ruby gem, it is)
I’ve tried to add just:
but it doesn’t work, a silly try to fix it. I don’t see where and how
types can be defined. Has anyone use enums?