ruby / ruby/fiddle

Fiddle::CParser should expose module methods

Open
#125 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
195
Forks
53
Avg merge
23h 57m
Merged PRs (30d)
1

Description

The methods in Fiddle::CParser such as parse_struct_signature are useful on their own, outside of a class instance.

Would it make sense to be able to call these as module methods, in addition to the existing instance method interface?

i.e.

require 'fiddle/cparser'
Fiddle::CParser.parse_struct_signature(...)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the fiddle/cparser entry point and inspect the existing Fiddle::CParser instance methods, including parse_struct_signature. Confirm how those methods are exposed, then make the same operations callable through Fiddle::CParser while preserving the existing instance interface. Done means the module-method usage shown in the issue works.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.