RubyGems Navigation menu

template_class 1.2.0

In most cases Ruby doesn't need templated classes, nor any other system of generics, because it isn't statically type checked. However, sometimes we need to automatically generate multiple similar classes, either because of poor design or because of external necessities. For example, to define a GraphQL schema with GraphQL Ruby (https://graphql-ruby.org/) we need to define a distinct class for each type. Since GraphQL is statically type checked but doesn't provide generics, if we need a set of similar but distinct types we're left to define them one by one.

Gemfile:
=

installieren:
=

Versionen:

  1. 1.2.0 August 19, 2024 (10,5 KB)
  2. 1.1.0 August 31, 2023 (10 KB)
  3. 1.0.0 April 07, 2023 (10 KB)

Runtime Abhängigkeiten (1):

activesupport ~> 7.0.0

Besitzer:

Pushed by:

Autoren:

  • Moku S.r.l., Riccardo Agatea

SHA 256-Prüfsumme:

=

Downloads insgesamt 1.148

Für diese Version 246

Version veröffentlicht:

Lizenz:

MIT

Erforderliche Ruby-Version: >= 3.0.0

Links: