lib/innate/route.rb in manveru-innate-2009.02.06 vs lib/innate/route.rb in manveru-innate-2009.02.21
- old
+ new
@@ -97,13 +97,15 @@
# Identical with Innate::Route, but is called before any Node::call is made
class Rewrite < Route
ROUTES = []
end
- def self.Route(key, value = nil, &block)
- Route[key] = value || block
- end
+ module SingletonMethods
+ def Route(key, value = nil, &block)
+ Route[key] = value || block
+ end
- def self.Rewrite(key, value = nil, &block)
- Rewrite[key] = value || block
+ def Rewrite(key, value = nil, &block)
+ Rewrite[key] = value || block
+ end
end
end