Sha256: 86f45a51306e6155ea1db129bfb68b14e3a4289f172bf04a1cc9085bbaea780d
Contents?: true
Size: 898 Bytes
Versions: 13
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true new({ particle: :connection, category: :communication, type: :hash }) do |params, bloc| # FIXME : html method shouldn't be here html.connect(params, &bloc) end new({ particle: :message, category: :communication, type: :hash }) do |params, bloc| if Universe.database_ready params = { data: params } unless params.instance_of? Hash message_id= "msg_#{Universe.messages.length}" params[:message_id]=message_id Universe.store_messages({msg_nb:message_id, proc: bloc }) html.send_message(params) else puts "server not ready " end end new({ particle: :controller, category: :communication, type: :hash }) do |msg| Atome.controller_sender(msg) end new({ particle: :int8, category: :communication, type: :int }) new({ particle: :language, category: :communication, type: :string }) do |params| @data = int8[params] params end
Version data entries
13 entries across 13 versions & 1 rubygems