lib/atome/genesis/particles/utility.rb in atome-0.5.6.7.8 vs lib/atome/genesis/particles/utility.rb in atome-0.5.6.8.3

- old
+ new

@@ -232,6 +232,16 @@ new ({ particle: :css, category: :utility, type: :string }) new({ read: :css }) do CssProxy.new(js, nil, self) -end \ No newline at end of file +end + +new({particle: :holder, category: :utility, type: :atome}) + +# this particle is mainly used in conjunction with alternate particle as a 'lambda' to alternate methods +new({particle: :executor, category: :utility, type: :hash}) do |params| + params.each do |method, opt| + send(method, opt) + end + params +end