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

- old
+ new

@@ -1,19 +1,21 @@ class Tynn module AllMethods - def head - if root? && req.head? - yield + module InstanceMethods + 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 end