dsl 0.1.2 → 0.1.3
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/VERSION +1 -1
- data/lib/dsl.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/dsl.rb
CHANGED
@@ -26,7 +26,7 @@ class Module
|
|
26
26
|
# The methods do not accept arguments, only blocks
|
27
27
|
opts.each do |method, dsl_class|
|
28
28
|
define_method(method) do |&blk|
|
29
|
-
raise(ArgumentError, "method #{method} requires a block") unless
|
29
|
+
raise(ArgumentError, "method #{method} requires a block") unless !!blk
|
30
30
|
dsl_class.call(self, &blk)
|
31
31
|
end
|
32
32
|
end
|
metadata
CHANGED