app-routes 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app-routes.rb +7 -2
- metadata +1 -1
data/lib/app-routes.rb
CHANGED
@@ -37,7 +37,9 @@ module AppRoutes
|
|
37
37
|
puts err_label
|
38
38
|
"app-routes error: " + ($!).to_s
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
|
+
@params = {}
|
42
|
+
|
41
43
|
end
|
42
44
|
result
|
43
45
|
end
|
@@ -47,7 +49,10 @@ module AppRoutes
|
|
47
49
|
send (methodx[arg.class.to_s.to_sym]), arg, &block
|
48
50
|
end
|
49
51
|
|
50
|
-
|
52
|
+
def add_route(arg)
|
53
|
+
get(arg) {yield(@params)}
|
54
|
+
end
|
55
|
+
|
51
56
|
private
|
52
57
|
|
53
58
|
def string_get(raw_s, &block)
|