Sha256: 416c427092ed30e5e3afb7a75043f59962a0cf1bc5ab47624f584f9794d092fb

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 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|
  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')
  mmessage_id= "msg_#{store_proc.length}"
  store_proc[mmessage_id]=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

2 entries across 2 versions & 1 rubygems

Version Path
atome-0.5.6.2.0 lib/atome/genesis/generators/communication.rb
atome-0.5.6.1.9 lib/atome/genesis/generators/communication.rb