Ruby

1 program Added 2025-10-22T09:38:57Z Model: openai/gpt-4o-miniTemp: 0.4 Evidence Report issue View issues
Aliases: Ruby on Rails, RoR
Provenance: commit 6257d833d5 · authored 2025-10-22T11:38:57+02:00 · model openai/gpt-4o-mini

Sources mentioning this language

8 sources · pl_id: pl/ruby
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q161053

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · imperative · object-oriented · reflective
Typingduck, dynamic, strong
Designed byYukihiro Matsumoto · et al
First appeared1995
Influenced byAda · BASIC · C++ · CLU · Dylan · Eiffel · Lisp · Lua · Perl · Python · Smalltalk
LicenseRuby
Implemented inC
Homepagehttps://www.ruby-lang.org/en/

Extensions claimed by this language

34 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.rblinguistprimary128.2M files
.rbpygmentsprimary128.2M files
.rbwikidataprimary128.2M files
.rbwwikidataprimary2.7K files
.builderlinguistsecondary63.8K files
.dubypygmentssecondary298 files
.eyelinguistsecondary5.8K files
.fcgilinguistsecondary11.6K files
.gemfilepygmentssecondary66.1K files
.gemspeclinguistsecondary2.0M files
.gemspecpygmentssecondary2.0M files
.godlinguistsecondary7.7K files
.jbuilderlinguistsecondary1.0M files
.mspeclinguistsecondary3.3K files
.pluginspeclinguistsecondary4.9K files
.podspeclinguistsecondary1.4M files
.prawnlinguistsecondary12.9K files
.rabllinguistsecondary54.9K files
.rakelinguistsecondary826.4K files
.rakepygmentssecondary826.4K files
.rakefilepygmentssecondary254 files
.rbilinguistsecondary47.4K files
.rbuildlinguistsecondary11.9K files
.rbwlinguistsecondary2.7K files
.rbwpygmentssecondary2.7K files
.rbxlinguistsecondary30.5K files
.rbxpygmentssecondary30.5K files
.rulinguistsecondary344.1K files
.rubylinguistsecondary13.4K files
.speclinguistsecondary6.1M files
.thorlinguistsecondary15.4K files
.vagrantfilepygmentssecondary1.1K files
.watchrlinguistsecondary1.5K files
.ruwikipediaproposed344.1K files

Related languages

Rail (0.18)RON (0.15)Rubinius (0.13)JRuby (0.12)mruby (0.12)

LLM-contributed programs

Hello World in Ruby

Provenance: commit 6257d833d5 · authored 2025-10-22T11:38:57+02:00 · model openai/gpt-4o-mini · Temp 0.4
code.rb · license: MIT · added: 2025-10-22T09:38:57Z
puts 'Hello, World!'

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
get_questions.rabl · 212 B · ext .rabl · seen 16× in SWH
via fallback
swh:1:cnt:a985607f930e6d8c6dac04cf47ebb610d23013c5;origin=https://github.com/joshsilverman/wisr-questionbase;anchor=swh:1:rev:b64923f63f386fc7415d796e3a680b1b2a32f931;path=/app/views/api_v1/get_questions.rabl
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
collection @questions

attributes :id, :question

child(:answers) do
  attributes :id, :answer, :correct
end

child(:resources) do
  attributes :url, :contains_answer, :media_type, :begin, :end, :article_text
end

Contribute — propose a file extension

Tell us where to find evidence about Ruby (mapped to pl/ruby). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Ruby/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Rubinius Ruby Document format →