Class: Tep::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/tep/handler.rb

Instance Method Summary collapse

Instance Method Details

#handle(req, res) ⇒ Object



15
16
17
# File 'lib/tep/handler.rb', line 15

def handle(req, res)
  ""
end

#is_regex?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/tep/handler.rb', line 19

def is_regex?
  false
end

#re_capture(path) ⇒ Object

Default returns an empty str_array. Subclasses for regex routes return up to 9 capture strings.



29
30
31
32
33
# File 'lib/tep/handler.rb', line 29

def re_capture(path)
  empty = [""]
  empty.delete_at(0)
  empty
end

#re_match?(path) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/tep/handler.rb', line 23

def re_match?(path)
  false
end