RubyGems Navigation menu

template_class 1.1.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:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.1.0 - August 31, 2023 (10.0 KB)
  2. 1.0.0 - April 07, 2023 (10.0 KB)

Runtime 依赖 (1):

activesupport ~> 7.0.0

业主:

推送:

作者:

  • Moku S.r.l., Riccardo Agatea

SHA 256 校验和:

d0dd0e6f46ea270e0cd938a91ad004e97e0a7bfc3617dd9d83d0616d567218e0

下载总量 723

这个版本 362

许可:

MIT

需要的 Ruby 版本: >= 3.0.0

链接: