Sha256: b2693abe4f70f0664bf2eb86a8e66dc7ce5d4dacd1f4c45687c6038642d141b2
Contents?: true
Size: 1.05 KB
Versions: 16
Compression:
Stored size: 1.05 KB
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| params = { data: params } unless params.instance_of? Hash # params[:user] = 'dfghg4df5gdfgh654' # params[:pass] = 'gfhkzrhgzr4h98948' # instance_variable_set('@message_code', {}) unless instance_variable_get('@message_code') # store_proc= instance_variable_get('@message_code') message_id= "msg_#{Universe.messages.length}" params[:message_id]=message_id # store_proc[mmessage_id]=bloc Universe.store_messages({msg_nb:message_id, proc: bloc }) html.send_message(params) 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
16 entries across 16 versions & 1 rubygems