Revision 2311048c
Added by Marc Dequènes about 14 years ago
- ID 2311048c143360efc08d280f0e146c042797a9df
lib/cyborghood/cyborg/interface.rb | ||
---|---|---|
end
|
||
|
||
# preliminary incoming message handling
|
||
def call(session, cmd, data)
|
||
def call(session, cmd, data = nil)
|
||
action = find_node_action(session, cmd)
|
||
raise "unknown node" if action.nil?
|
||
|
||
data ||= []
|
||
raise "wrong format for arguments" unless data.is_a? Array
|
||
|
||
begin
|
Also available in: Unified diff
[fix] interface: accept no data as empty list of arguments