blocks 0.9 → 0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/blocks/builder.rb +8 -2
  2. metadata +3 -3
@@ -20,8 +20,14 @@ module Blocks
20
20
  end
21
21
 
22
22
  def replace(name, options={}, &block)
23
- blocks[name.to_sym] = nil
24
- define(name, options, block)
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
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 9
9
- version: "0.9"
8
+ - 10
9
+ version: "0.10"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andrew Hunter