Class: Truss::Router::Routes::Head

Inherits:
Node
  • Object
show all
Defined in:
lib/truss/router/routes/head.rb

Instance Attribute Summary

Attributes inherited from Node

#endpoint, #matchable_regex, #options, #path, #request_method

Instance Method Summary collapse

Methods inherited from Node

#call, #matches?

Constructor Details

#initialize(path, endpoint, opts = {}) ⇒ Head

Returns a new instance of Head.



5
6
7
# File 'lib/truss/router/routes/head.rb', line 5

def initialize(path, endpoint, opts={})
    super(:head, path, endpoint, opts)
end