Ruby Structs with type specifications for the properties

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • Mergify - Updating dependencies is time-consuming.
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • typed_struct

    Ruby structs but with type-checked attributes ⚡️🔐

  • rbs

    Type Signature for Ruby

    Specify simple types (with class names or literal values), or complex types (with RBS notation) for each property of your struct:

  • Mergify

    Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.

  • Virtus

    One well-known example is . There are others.

  • bindata

    BinData - Reading and Writing Binary Data in Ruby

    These projects always remind me of binary formats. I've used bindata to work with binary formats coming from UDP streams over a network, and it's very handy to have a layer that encapsulates your expectations about the data you're receiving, combined with an exception handling apparatus.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts