I built a Ruby gem so I don't have to squint at hash dumps…
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityTrending
    DeepSeekBlogI built a Ruby gem so I don't have to squint at hash dumps anymore
    Back to Blog
    I built a Ruby gem so I don't have to squint at hash dumps anymore
    ruby

    I built a Ruby gem so I don't have to squint at hash dumps anymore

    Ender Ahmet Yurt May 8, 2026
    0 views

    Stop squinting at hash dumps. typed_print turns Ruby hashes into clean, aligned tables. Zero dependencies. Markdown support. Optional colors. Just gem install typed_print.


    title: I built a Ruby gem so I don't have to squint at hash dumps anymore published: true description: Stop squinting at hash dumps. typed_print turns Ruby hashes into clean, aligned tables. Zero dependencies. Markdown support. Optional colors. Just gem install typed_print. tags: ruby, cli, rubygems cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uelen6xj6qt7yqpcb69t.jpg

    I love Ruby. I love the console. I do not love this:

    {:name=>"Alice", :score=>100, :active=>true}
    {:name=>"Bob", :score=>42, :active=>false}
    

    When you have 20 of these in a row, good luck reading anything.

    So I built a tiny gem called typed_print.

    What does it do?

    One thing. Just one.

    It turns hashes into clean, aligned tables.

    require 'typed_print'
    
    data = [
      { name: "Alice", score: 100, active: true },
      { name: "Bob", score: 42, active: false }
    ]
    
    TypedPrint.print(data)
    

    Output

     Name  Score Active 
    ------+------+-------
    Alice   100 true   
    Bob      42 false  
    

    That's it. No magic. No mental parsing.

    Why not just use pp or awesome_print?

    • pp is fine, but still hard to scan.
    • awesome_print is great, but sometimes you don't want colors, JSON support, or 10 dependencies.

    I wanted something that:

    • Has zero required dependencies
    • Only does tables
    • Works everywhere (Rails, Rake tasks, plain Ruby scripts, even minimal Docker containers)

    What can you do with it?

    1. Align columns

    TypedPrint.print(data, align: { score: :right })
    

    2. Show only what you need

    TypedPrint.print(data, only: [:name, :score])
    

    3. Custom headers

    TypedPrint.print(data, headers: { name: "User", score: "Points" })
    

    4. Markdown output (great for docs)

    TypedPrint.print(data, format: :markdown)
    

    Outputs a proper markdown table you can copy into GitHub READMEs.

    5. Colors! (v0.3.0)

    TypedPrint.print(data, color: true)
    

    Or full control:

    TypedPrint.print(data, colors: { name: :cyan, score: :green, active: :yellow })
    
    • Pastel is optional. If you don't have it, colors are ignored. No errors.

    Example with different data types

    mixed = [
      { name: "Product A", price: 29.99, in_stock: true, notes: nil },
      { name: "Product B", price: 49.99, in_stock: false, notes: "Limited" }
    ]
    
    TypedPrint.print(mixed)
    

    Output:

       Name      Price In_stock Notes        
    ----------+-------+---------+-------------
    Product A   29.99 true                  
    Product B   49.99 false    Limited edition
    

    It handles nil, booleans, numbers, and strings automatically.

    What about performance?

    It's lightweight. Zero dependencies means no hidden bloat. I've tested it with 10,000 rows. Still fast enough for CLI tools and debugging. For massive datasets? You probably shouldn't print them to the terminal anyway.

    Who is this for?

    • Rails developers who debug in the console
    • CLI tool authors who want clean output
    • Anyone who logs hashes and wants them readable
    • People who are tired of pp

    Links

    • RubyGems: https://rubygems.org/gems/typed_print
    • GitHub: https://github.com/enderahmetyurt/typed_print
    • Documentation: In the README, nothing fancy

    What's next?

    I'm keeping it simple. No roadmap to become a bloated framework.

    But if you have an idea that fits the "zero-dependency, just tables" philosophy – open an issue. I shipped markdown support within hours of a user request (that was v0.2.0).

    Try it

    gem install typed_print
    

    That's it. You're done.

    If you find it useful, let me know. If you find a bug, also let me know.

    Thanks for reading 🙏

    Tags

    rubyclirubygems

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this DeepSeek resource

    • Generate Random Mock Data with No Code and Zero Dependenciesn8n · $9.99 · Related topic
    • Automate Multi-Language Blog Translation with GPT-4 and Markdownn8n · $9.99 · Related topic
    • Extract Text from Images & PDFs via Telegram with Mistral OCR to Markdownn8n · $24.99 · Related topic
    • Sync Zendesk Knowledge Base Articles to Airtable with Markdown Conversionn8n · $14.99 · Related topic
    Browse all workflows