lib/universa/service.rb in universa-3.12.0.2 vs lib/universa/service.rb in universa-3.12.4.1

- old
+ new

@@ -76,10 +76,10 @@ # Register a class that will work as a proxy for UMI remote class. Such adapter class mist extend RemoteAdapter # class. Once the class is registered, serive will automatically instantiate it when UMI will pass the instance # of the corresponding remote class. # @param [Class] klass that will be def register_proxy(klass) - RemoteAdapter > klass or raise ArgumentError, "#{klass.name} must be based on RemoteAdapter" + klass < RemoteAdapter or raise ArgumentError, "#{klass.name} must be based on RemoteAdapter" remote_class_name = klass.remote_class_name raise Error, "#{remote_class_name} is already registered in Service" if @known_proxies.include?(remote_class_name) @known_proxies[remote_class_name] = klass end end