Sha256: ee2a5d867950cb139bbabb417f7e897411ee7c83437c18147fa18c4a21385458
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true # TODO: подумать и заменить константой, возможно class INat::Data::DDL def initialize @models = [] end def <<(model) @models << model end def DDL @models.map(&:DDL).join("\n") end class << self private :new def instance @instance ||= new end def <<(model) instance << model end def DDL instance.DDL end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inat-get-0.8.0.15 | lib/inat/data/ddl.rb |
inat-get-0.8.0.14 | lib/inat/data/ddl.rb |
inat-get-0.8.0.13 | lib/inat/data/ddl.rb |