Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'log'
- #Clase que hace de interfaz.
- #El archivo indicado por el usuario debe contener
- #un algoritmo de ruteo que implemente las funciones:
- # - route_to(node_name)
- class Router
- include Log
- @algorithm_path
- @algorithm_name
- attr_accessor :algorithm_path, :algorithm_name
- def set_algorithm(path, name)
- @algorithm_path=path
- @algorithm_name=name
- require path
- self.include name
- end
- end
Add Comment
Please, Sign In to add comment