Skip to content

Ruby 2.5 Warnings on Data classes #96

@grncdr

Description

@grncdr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions