Sha256: 38014236e3444702db0aea06d442dbd02ee316bbd169e6449f7b1a1b29bf03b9
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true generator = Genesis.generator generator.build_particle(:type) generator.build_particle(:parents) generator.build_particle(:children) generator.build_particle(:link) do |child_id| child_found = grab(child_id) child_found.atome[:parents] << @atome[:id] child_found.refresh end generator.build_particle(:id) generator.build_sanitizer(:id) do |params| if @atome[:id] != params Universe.update_atome_id(params, self, @atome[:id]) else Universe.add_to_atomes(params, self) end params end generator.build_option(:pre_render_parents) do |parents_id_found| parents_id_found.each do |parents_id| parents_found = grab(parents_id) parents_found.children << id if parents_found end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.1.4 | lib/atome/genesis/generators/identity.rb |