-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers
Description
- Description: Ruby uses modules to group methods. When a class includes a module, it gains the module's methods.
- Graphing Strategy: Model as an
INCLUDES
relationship from a:Class
node to a:Module
node.
Implementation Steps
This requires a :Module
node type and an INCLUDES
relationship.
-
Modify the Ruby Parser (
.../languages/ruby.py
)- Add queries to find both
module
definitions andinclude
statements within classes. - Create
_find_modules
and_find_module_inclusions
methods. - Return the results under keys
"modules"
and"module_inclusions"
.
- Add queries to find both
-
Update the Generic Graph Builder (
.../tools/graph_builder.py
)- Add a
:Module
node type following the standard procedure (add constraint tocreate_schema
, add toitem_mappings
). - Add a new section in
add_file_to_graph
to processmodule_inclusions
and create theINCLUDES
relationships.
- Add a
Metadata
Metadata
Assignees
Labels
Hacktoberfest25This issue is created as a part of Hacktoberfest 2025 programThis issue is created as a part of Hacktoberfest 2025 programgood first issueGood for newcomersGood for newcomers