1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

fix for doc formatting

This commit is contained in:
Marc Siegel 2011-12-06 18:46:14 -05:00
parent dfc2daf899
commit 9d868ccb8d

View file

@ -5,13 +5,14 @@ module Docile
# Executes a block in the context of an object whose interface represents a DSL.
#
# Example of using an Array as a DSL:
# Docile.dsl_eval [] do
# push 1
# push 2
# pop
# push 3
# end
# #=> [1, 3]
#
# Docile.dsl_eval [] do
# push 1
# push 2
# pop
# push 3
# end
# #=> [1, 3]
#
# @param dsl [Object] an object whose methods represent a DSL
# @param block [Proc] a block to execute in the DSL context