Metadata-Version: 2.4
Name: rbtr-lang-ruby
Version: 2026.9.0.dev3
Summary: rbtr — Ruby language plugin
Keywords: code-search,code-index,tree-sitter,static-analysis,semantic-search,developer-tools,ruby
Author: Alejandro Giacometti
Author-email: Alejandro Giacometti <alejandro.giacometti@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Ruby
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Dist: rbtr==2026.9.0.dev3
Requires-Dist: tree-sitter-ruby
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/janrito/rbtr
Project-URL: Repository, https://github.com/janrito/rbtr
Project-URL: Documentation, https://github.com/janrito/rbtr/tree/main/packages/rbtr-lang-ruby#readme
Project-URL: Issues, https://github.com/janrito/rbtr/issues
Project-URL: Changelog, https://github.com/janrito/rbtr/releases
Description-Content-Type: text/markdown

# rbtr-lang-ruby

Ruby support for [rbtr]. Optional plugin — install with
`pip install rbtr[ruby]`.

[rbtr]: https://github.com/janrito/rbtr/tree/main/packages/rbtr#readme

## What it ingests

- **Functions & methods** — `def` (a method inside a class/module is scoped
  to it; top-level `def` is a function).
- **Classes** — `class` and `module` definitions (a module also scopes its
  members).
- **Variables** — constants and module-level assignments.
- **Imports** — `require` and `require_relative`, for cross-file edges.

Leading `#` doc comments fold into the symbol's content.

## Chunks produced

```ruby
def greet(name); …; end          # function "greet"
class User                       # class "User"
  def save; …; end               #   method "save", scope "User"
end
MAX = 100                        # variable "MAX"
require_relative "config"        # import, metadata {module: config}
```

## Embedded / injected chunks

None. Ruby does not embed other languages.

## Grammar & dependencies

Uses the `tree-sitter-ruby` grammar. No dependency on other language plugins.
