Ruby support for codecontext is provided as a small native checker that validates
@context annotations in # comments.
It validates:
@contexttag syntax- known type/subtype combinations
- local
{@link file:...}resolution - explicit
[verified:YYYY-MM-DD]dates
lib/codecontext/ruby: parser, checker, and CLI entrypointexe/codecontext-ruby: executable wrappertest: parser and checker tests
# @context decision:constraint {@link file:docs/context/api-limits.md} !high [verified:2026-03-24] -- Stripe caps batch size at 100.
def clamp_batch_size(size)
[size, 100].min
endgem build codecontext-ruby.gemspec
gem install --local codecontext-ruby-*.gem
codecontext-ruby examples/ruby/payments/gateway.rb