Sha256: 10bb95effedf842f6e78b5972075a59d800486eb8b1e8eddb8d469a1b6c047a6

Contents?: true

Size: 521 Bytes

Versions: 11

Compression:

Stored size: 521 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 fasten atomes recursively,
it return a table of ID including the ID of the parent (here : :the_circle) :\n#{atome_founds}"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/dig.rb
atome-0.5.7.5.9 vendor/assets/application/examples/dig.rb
atome-0.5.7.5.4 vendor/assets/application/examples/dig.rb
atome-0.5.7.5.3 vendor/assets/application/examples/dig.rb
atome-0.5.7.5.1 vendor/assets/application/examples/dig.rb
atome-0.5.7.4.8 vendor/assets/application/examples/dig.rb
atome-0.5.7.4.7 vendor/assets/application/examples/dig.rb
atome-0.5.7.4.6 vendor/assets/application/examples/dig.rb
atome-0.5.7.4.3 vendor/assets/application/examples/dig.rb
atome-0.5.7.4.2 vendor/assets/application/examples/dig.rb
atome-0.5.7.3.9 vendor/assets/application/examples/dig.rb