docile 0.9.1 → 0.9.2
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/docile.rb +8 -7
- data/lib/docile/version.rb +1 -1
- metadata +1 -1
data/lib/docile.rb
CHANGED
@@ -5,13 +5,14 @@ module Docile
|
|
5
5
|
# Executes a block in the context of an object whose interface represents a DSL.
|
6
6
|
#
|
7
7
|
# Example of using an Array as a DSL:
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
8
|
+
#
|
9
|
+
# Docile.dsl_eval [] do
|
10
|
+
# push 1
|
11
|
+
# push 2
|
12
|
+
# pop
|
13
|
+
# push 3
|
14
|
+
# end
|
15
|
+
# #=> [1, 3]
|
15
16
|
#
|
16
17
|
# @param dsl [Object] an object whose methods represent a DSL
|
17
18
|
# @param block [Proc] a block to execute in the DSL context
|
data/lib/docile/version.rb
CHANGED