Sha256: 325a348bb60e31f121ee56fb21f58d3aa1b255ce17f80379c9896dbb61f6526e
Contents?: true
Size: 733 Bytes
Versions: 4
Compression:
Stored size: 733 Bytes
Contents
require "goon_model_gen" require "goon_model_gen/golang/predeclared_type" require "goon_model_gen/golang/package" module GoonModelGen module Golang class Builtin < PredeclaredType TYPE_NAMES = %w[bool byte complex128 complex64 error float32 float64 int int16 int32 int64 int8 rune string uint uint16 uint32 uint64 uint8 uintptr] class << self def package @package ||= Package.new(nil).tap do |pkg| instances.each do |i| i.package = pkg pkg.types.push(i) end end end def instances @instances ||= TYPE_NAMES.map{|name| self.new(name) } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems