Sha256: 64403ea3f641de2f96d0390e4a3abfe4451ca756707c50c243f050a423b2c4d7

Contents?: true

Size: 512 Bytes

Versions: 2

Compression:

Stored size: 512 Bytes

Contents

# atome as property :

p=particle({ color: :red, smooth: 30, content: "anything can be passed", x: 222 })
t =text({x: p, content: p})

b=box({x: p.smooth })
b.smooth(p)
b.color(p)

wait 2 do
  t.content(p.color)
end

# the code below is in atome propery generator:
# # below the condition if the value is an atome it  get the corresponding property in the atome passed
# if value.class==Atome
#   value= value.content
# end

# todo : some property not automayically generated  may not work we have to patch them

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.4.7.0 vendor/assets/build/medias/rubies/examples/Old_examples/atome_as_property.rb
atome-0.4.5.4 vendor/assets/build/medias/rubies/examples/Old_examples/atome_as_property.rb