Categories: None [Edit]

template_class

https://rubygems.org/gems/template_class
https://github.com/moku-io/template_class
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.

Total

Ranking: 153,465 of 196,125
Downloads: 3,886

Daily

Ranking: 49,580 of 196,106
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
71,411,726,152activesupport

Owners

#GravatarHandle
1iconMoku
2iconRiccardoAgatea_Moku