Sha256: d2decb13e26076d171503ab0b31ea3f59883490a727a6d285c742a5eea7c77e9
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
module Nephos class Controller attr_reader :env, :infos, :callpath # @param env [Hash] env extracted from the http request # @param parsed [Hash] pre-parsed env with parameters, ... def initialize env={}, parsed={path: [], args: {}}, callpath={params: []} @env= env @infos= parsed @callpath= callpath @params= parsed[:args] @params= @params.merge Hash[callpath[:params].zip @infos[:path]] @params= @params.select{|k,v|k} end def arguments @params end alias :params :arguments end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nephos-server-0.1.10 | lib/nephos-server/routing/controller.rb |