lib/tynn/all_methods.rb in tynn-1.0.0.rc1 vs lib/tynn/all_methods.rb in tynn-1.0.0.rc2

- old
+ new

@@ -1,17 +1,19 @@ -module Tynn::AllMethods - def head - if root? && req.head? - yield +class Tynn + module AllMethods + def head + if root? && req.head? + yield - halt(res.finish) + halt(res.finish) + end end - end - def options - if root? && req.options? - yield + def options + if root? && req.options? + yield - halt(res.finish) + halt(res.finish) + end end end end