Top Level Namespace
- Includes:
- Aleph::Delegator
Defined Under Namespace
Modules: Aleph Classes: AddRoute, AddRoutes, Connection, ConnectionInformation, MessageAndProc, Reply, Request
Instance Method Summary collapse
Methods included from Aleph::Delegator
Instance Method Details
#process_route(route, pattern, keys, values = []) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/armstrong/main_actors.rb', line 10 def process_route(route, pattern, keys, values = []) return unless match = pattern.match(route) values += match.captures.map { |v| URI.decode(v) if v } params = {} if values.any? keys.zip(values) { |k,v| (params[k] ||= '') << v if v } end params end |