Project

General

Profile

« Previous | Next » 

Revision 2c547ffe

Added by Marc Dequènes over 14 years ago

  • ID 2c547ffee512e142a3c64173450bc50f5d353d14

[evol] work on cyborg server protocol and API #9 (refs #31)

View differences:

lib/cyborghood/cyborg/interface.rb
end
module CyborgServerInterfaceBase
NODE_PATTERN = "(\/(?:\/[a-zA-Z0-9._]+)*[?=]?)"
NODE_PATTERN = "((?:\/|(?:\/[a-zA-Z0-9._]+)+[?=]?))"
def self.included(base)
base.extend(ClassMethods)
......
end
def find_node_action(node_name)
node_name.gsub!(/^\//, "")
next_node_name, other_nodes_names = node_name.split('/', 2)
next_node_klass = (node_name == "/") ? self.class : api_klasses[next_node_name]
next_node_klass = next_node_name.nil? ? self.class : api_klasses[next_node_name]
# inner class or method ?
if next_node_klass.nil?
# method is declared ?

Also available in: Unified diff