The docs recommend inheriting from Data following this idiom:
let data_class = Class::from_existing("Data");
Class::new("MyClass", Some(&Data)).define(...)
On Ruby 2.5, this prints warning: constant ::Data is deprecated every time Data is accessed. I guess that there is some way to access this via the C extension API but I haven't found it yet.