Sha256: e225e616848a037cafc4be7a7e3b40e26d47fa6205f9f46caacf4baea058bc58
Contents?: true
Size: 494 Bytes
Versions: 12
Compression:
Stored size: 494 Bytes
Contents
## # Class for Midori route # @attr [String] method HTTP method # @attr [Regexp] path regex to match # @attr [Proc] function what to do after matched class Midori::Route attr_accessor :method, :path, :function, :middlewares # @param [String] method HTTP method # @param [Regexp] path regex to match # @param [Proc] function what to do after matched def initialize(method, path, function) @method = method @path = path @function = function @middlewares = [] end end
Version data entries
12 entries across 12 versions & 1 rubygems