Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Italian Competition Authority investigating Activision Blizzard over Diablo Immortal and Call of Duty Mobile monetisation

    Shovelware is a bigger problem than ever – platform holders need a robust response | Opinion

    Valve says Steam Machine will have “fewer constraints” than Steam Deck for game verification

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Ashley St. Clair, the mother of one of Elon Musk’s children, sues xAI over Grok sexual images

      January 17, 2026

      Anthropic joins OpenAI’s push into health care with new Claude tools

      January 12, 2026

      The mother of one of Elon Musk’s children says his AI bot won’t stop creating sexualized images of her

      January 7, 2026

      A new pope, political shake-ups and celebs in space: The 2025-in-review news quiz

      December 31, 2025

      AI has become the norm for students. Teachers are playing catch-up.

      December 23, 2025
    • Business

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025

      Saudia Arabia’s STC commits to five-year network upgrade programme with Ericsson

      December 18, 2025
    • Crypto

      Trump Shifts on Fed Pick as Hassett Odds Fade: Who Will Replace Powell?

      January 17, 2026

      A Third of French Crypto Firms Still Unlicensed Under MiCA as Deadline Nears

      January 17, 2026

      DOJ Charges Venezuelan National in $1 Billion Crypto Laundering Scheme

      January 17, 2026

      One of Wall Street’s Top Strategists No Longer Trusts Bitcoin | US Crypto News

      January 17, 2026

      3 Altcoins To Watch This Weekend | January 17 – 18

      January 17, 2026
    • Technology

      X is fully online after going down for most of the morning

      January 17, 2026

      Google is appealing the ruling from its search antitrust case to avoid sharing data with rivals

      January 17, 2026

      Get up to 78 percent off ExpressVPN two-year plans

      January 17, 2026

      CyberGhost VPN review: Despite its flaws, the value is hard to beat

      January 17, 2026

      Mayor of London Sadiq Khan calls for urgent action to boost the capital’s AI workforce

      January 17, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»T-Ruby is Ruby with syntax for types
    Technology

    T-Ruby is Ruby with syntax for types

    TechAiVerseBy TechAiVerseDecember 27, 2025No Comments2 Mins Read1 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    T-Ruby is Ruby with syntax for types
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    T-Ruby is Ruby with syntax for types

    What is T-Ruby?

    Ruby and More

    T-Ruby extends Ruby with additional syntax. This means static types and compile time.

    A Result You Can Trust

    T-Ruby code converts to Ruby and RBS, guaranteeing compatibility with the entire Ruby and RBS ecosystem.

    Safety at Scale

    Ensure type safety for your Ruby products with T-Ruby. Stay safe even at large scale.

    Example

    Write typed Ruby, compile to standard Ruby with generated type signatures.

    # hello.trb
    def greet(name: String): String
    "Hello, #{name}!"
    end

    def add(a: Integer, b: Integer): Integer
    a + b
    end

    →

    # hello.rb
    def greet(name)
    "Hello, #{name}!"
    end

    def add(a, b)
    a + b
    end

    +

    # hello.rbs
    def greet: (name: String) -> String

    def add: (a: Integer, b: Integer) -> Integer

    Existing Methods

    Compare with existing Ruby typing solutions and see why T-Ruby is different.

    How it works

    A static type checker for Ruby developed by Stripe. Uses sig blocks to declare types on methods.

    # typed: strict
    require 'sorbet-runtime'

    class Greeter
    extend T::Sig

    sig { params(name: String).returns(String) }
    def greet(name)
    "Hello, #{name}!"
    end
    end

    Limitations

    • Requires runtime dependency (sorbet-runtime gem)
    • Types must be written separately in sig blocks, like comments above function code.
    • Requires learning sig block’s unique DSL syntax.

    T-Ruby Approach

    T-Ruby uses inline types like TypeScript without runtime dependencies, and generates standard RBS files.

    Quick Start

    1

    Initialize project

    gem install t-ruby
    trc --init

    2

    Start watch mode

    3

    Write typed Ruby

    src/hello.trb

    def greet(name: String): String
    "Hello, #{name}!"
    end

    Works with your tools

    T-Ruby integrates seamlessly with the Ruby ecosystem.

    Join the Journey

    T-Ruby is an open source project. Your contribution makes a difference.
    It’s still experimental. The core compiler works, but there’s much to improve.
    Feedback and suggestions are always welcome!

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleWe’re Choosing the Official Best of CES 2026 Awards
    Next Article Always Bet on Text
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    X is fully online after going down for most of the morning

    January 17, 2026

    Google is appealing the ruling from its search antitrust case to avoid sharing data with rivals

    January 17, 2026

    Get up to 78 percent off ExpressVPN two-year plans

    January 17, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025617 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025234 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025135 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025109 Views
    Don't Miss
    Gaming January 17, 2026

    Italian Competition Authority investigating Activision Blizzard over Diablo Immortal and Call of Duty Mobile monetisation

    Italian Competition Authority investigating Activision Blizzard over Diablo Immortal and Call of Duty Mobile monetisation…

    Shovelware is a bigger problem than ever – platform holders need a robust response | Opinion

    Valve says Steam Machine will have “fewer constraints” than Steam Deck for game verification

    Amazon Games’ New World: Aeternum to go offline in January 2027

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Italian Competition Authority investigating Activision Blizzard over Diablo Immortal and Call of Duty Mobile monetisation

    January 17, 20260 Views

    Shovelware is a bigger problem than ever – platform holders need a robust response | Opinion

    January 17, 20260 Views

    Valve says Steam Machine will have “fewer constraints” than Steam Deck for game verification

    January 17, 20260 Views
    Most Popular

    A Team of Female Founders Is Launching Cloud Security Tech That Could Overhaul AI Protection

    March 12, 20250 Views

    Senua’s Saga: Hellblade 2 leads BAFTA Game Awards 2025 nominations

    March 12, 20250 Views

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.