Skip to content

Add support for methods defined with define_singleton_method #2

Description

@uvlad7

So, I don't have any Rust struct to wrap, I just make a Ruby binding for a third-party crate. So, the methods are defined with define_singleton_method, and yard-rustdoc doesn't seem to work with them.

I ended up doing this, it's fine for this specific gem, but I actually want to use a more clean solution - like rustdoc - for docs, because I want this project to become a template of wrapping a Rust library into a Ruby/Jruby gem, a Python package, etc.

Btw documenting modules/classes created with define_module/define_class would be nice, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions