Sha256: 09b5fd620bfab16767c8a2c01cf962176b3e43ce74410a28569b7c21c9ec2473

Contents?: true

Size: 523 Bytes

Versions: 60

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true


c = circle({ height: 400, width: 200, top: 100, left: 0, top: 100 , id: :the_circle})
b = c.box({ width: 200, height: 100, left: 600, top: 200, id: :my_box })
c.circle({ width: 200, height: 100, left: 120, top: -80, id: :my_text, data: :hi })
b.circle({ color: :yellow, width: 55, height: 88, left: 100 })
b.box


atome_founds = c.dig
puts "dig allow to retrieve all attached atomes recursively,
it return a table of ID including the ID of the parent (here : :the_circle) :\n#{atome_founds}"

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
atome-0.5.7.3.6 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.5 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.3 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.2 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.1 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.0 vendor/assets/application/examples/dig.rb
atome-0.5.7.1.8 vendor/assets/application/examples/dig.rb
atome-0.5.7.1.7 vendor/assets/application/examples/dig.rb
atome-0.5.7.1.0 vendor/assets/application/examples/dig.rb
atome-0.5.7.0.7 vendor/assets/application/examples/dig.rb
atome-0.5.7.0.5 vendor/assets/application/examples/dig.rb
atome-0.5.7.0.4 vendor/assets/application/examples/dig.rb
atome-0.5.7.0.3 vendor/assets/application/examples/dig.rb
atome-0.5.7.0.2 vendor/assets/application/examples/dig.rb
atome-0.5.6.8.7 vendor/assets/application/examples/dig.rb
atome-0.5.6.8.6 vendor/assets/application/examples/dig.rb
atome-0.5.6.8.5 vendor/assets/application/examples/dig.rb
atome-0.5.6.8.3 vendor/assets/application/examples/dig.rb
atome-0.5.6.7.8 vendor/assets/application/examples/dig.rb
atome-0.5.6.7.7 vendor/assets/application/examples/dig.rb