lib/atome/genesis/atomes.rb in atome-0.5.6.4.5 vs lib/atome/genesis/atomes.rb in atome-0.5.6.4.8
- old
+ new
@@ -67,13 +67,26 @@
# TODO : the line below should get the value from default params Essentials
params
end
new({ atome: :www })
new({ atome: :shadow }) do |params|
+ # if params
+ # if params.delete(:affect)
+ # attach_value = params.delete(:affect)
+ # else
+ # attach_value=id
+ # end
+ #
+ # params[:affect] = attach_value
+ # alert "=> params : #{params}"
+ #
+ # end
+
if params
attach_value = params.delete(:affect)
params[:affect] = attach_value
end
+ # alert "=> params : #{params}"
params
end
new({ atome: :raw })
new({ atome: :shape })
new({ atome: :code })