Remarkably 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/remarkably.rb +13 -1
- data/lib/remarkably/engines/css.rb +1 -0
- data/lib/remarkably/engines/html.rb +1 -0
- data/lib/remarkably/engines/xml.rb +1 -0
- metadata +1 -1
data/lib/remarkably.rb
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
module Remarkably
|
2
2
|
|
3
|
+
class Config
|
4
|
+
@@default_engine = nil
|
5
|
+
class << self
|
6
|
+
def default_engine
|
7
|
+
@@default_engine
|
8
|
+
end
|
9
|
+
def default_engine= engine
|
10
|
+
@@default_engine = engine
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
3
15
|
module Base
|
4
16
|
|
5
17
|
class Engine
|
@@ -42,7 +54,7 @@ module Remarkably
|
|
42
54
|
module Common
|
43
55
|
|
44
56
|
def method_missing(sym, *args, &block)
|
45
|
-
@remarkably_engine ||=
|
57
|
+
@remarkably_engine ||= Config.default_engine.new
|
46
58
|
@remarkably_engine.send( :missing_method, sym, self, *args, &block )
|
47
59
|
end
|
48
60
|
|
metadata
CHANGED