lib/atome/genesis/atomes.rb in atome-0.5.7.5.4 vs lib/atome/genesis/atomes.rb in atome-0.5.7.5.9

- old
+ new

@@ -1,7 +1,15 @@ # frozen_string_literal: true +new({ atome: :editor, type: :hash }) + +new({ sanitizer: :editor }) do |params| + params = {} unless params.instance_of? Hash + params[:data] = [] unless params[:data] + params +end + new({ atome: :color, type: :hash }) new({ sanitizer: :color }) do |params| params = create_color_hash(params) unless params.instance_of? Hash unless params[:id] @@ -103,18 +111,22 @@ new({ sanitizer: :text }) do |params| # to allow text api with the form text(:hello) instead of text({data: :hello}) params = { data: params } unless params.instance_of? Hash params end + # for later use ( physical is a css like style) new({ atome: :human }) do |params| Universe.add_user = params[:id] end new({ atome: :machine }) new({ atome: :paint }) new({ atome: :vector }) new({ atome: :table }) new({ atome: :atomized, type: :hash }) +new({ atome: :map, type: :hash }) +new({atome: :vr, type: :hash}) +