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

Version Path
em-midori-0.1.6.1 lib/midori/route.rb
em-midori-0.1.6 lib/midori/route.rb
em-midori-0.1.5.4 lib/em-midori/route.rb
em-midori-0.1.5.3 lib/em-midori/route.rb
em-midori-0.1.5.2 lib/em-midori/route.rb
em-midori-0.1.5.1 lib/em-midori/route.rb
em-midori-0.1.5 lib/em-midori/route.rb
em-midori-0.1.4.1 lib/em-midori/route.rb
em-midori-0.1.4 lib/em-midori/route.rb
em-midori-0.1.3 lib/em-midori/route.rb
em-midori-0.1.2 lib/em-midori/route.rb
em-midori-0.1.1 lib/em-midori/route.rb