shim 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shim/version.rb +1 -1
- data/lib/shim.rb +8 -10
- metadata +1 -1
data/lib/shim/version.rb
CHANGED
data/lib/shim.rb
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
require "shim/version"
|
2
2
|
|
3
3
|
module Shim
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
@content_path = "shim/"
|
4
|
+
mattr_accessor :layout, :content_path
|
5
|
+
@@content_path = "shim/"
|
6
|
+
@@layout = "application"
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
end
|
8
|
+
def config(&block)
|
9
|
+
if block.arity == 1
|
10
|
+
self[&block]
|
11
|
+
else
|
12
|
+
instance_eval &block
|
15
13
|
end
|
16
14
|
end
|
17
15
|
|