Module: EM::Nodes::Client::HelloFeature

Defined in:
lib/em-nodes/client/hello.rb

Instance Method Summary collapse

Instance Method Details

#infoObject



10
11
12
# File 'lib/em-nodes/client/hello.rb', line 10

def info
  {} # redefine me
end

#on_who_are_you?Boolean



4
5
6
7
8
# File 'lib/em-nodes/client/hello.rb', line 4

def on_who_are_you?
  i = info
  raise "info should be a Hash, but not #{i.inspect}" unless i.is_a?(Hash)
  send_i_am(i.merge(__default_info__))
end