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

Version Path
atome-0.5.6.5.4 lib/atome/genesis/particles/communication.rb
atome-0.5.6.5.1 lib/atome/genesis/particles/communication.rb
atome-0.5.6.4.8 lib/atome/genesis/particles/communication.rb
atome-0.5.6.4.5 lib/atome/genesis/particles/communication.rb
atome-0.5.6.4.2 lib/atome/genesis/particles/communication.rb
atome-0.5.6.4.1 lib/atome/genesis/particles/communication.rb
atome-0.5.6.4.0 lib/atome/genesis/particles/communication.rb
atome-0.5.6.3.9 lib/atome/genesis/particles/communication.rb
atome-0.5.6.3.6 lib/atome/genesis/particles/communication.rb
atome-0.5.6.3.5 lib/atome/genesis/particles/communication.rb
atome-0.5.6.3.1 lib/atome/genesis/particles/communication.rb
atome-0.5.6.3.0 lib/atome/genesis/generators/communication.rb
atome-0.5.6.2.9 lib/atome/genesis/generators/communication.rb
atome-0.5.6.2.7 lib/atome/genesis/generators/communication.rb
atome-0.5.6.2.5 lib/atome/genesis/generators/communication.rb
atome-0.5.6.2.4 lib/atome/genesis/generators/communication.rb