blocks 0.9 → 0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blocks/builder.rb +8 -2
- metadata +3 -3
data/lib/blocks/builder.rb
CHANGED
@@ -20,8 +20,14 @@ module Blocks
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def replace(name, options={}, &block)
|
23
|
-
|
24
|
-
|
23
|
+
block_container = Blocks::Container.new
|
24
|
+
block_container.name = name
|
25
|
+
block_container.options = options
|
26
|
+
block_container.block = block
|
27
|
+
|
28
|
+
blocks[name.to_sym] = block_container
|
29
|
+
|
30
|
+
nil
|
25
31
|
end
|
26
32
|
|
27
33
|
def use(*args, &block)
|
metadata
CHANGED