Commit Graph

8 Commits

Author SHA1 Message Date
Taichi Ishitani fcbd6841ab Fix for when DSL object is also the block's context
* fix #29

* added RSpec example for issue #29

* fixed a typo on the descripton comment
2018-05-23 22:16:32 -04:00
Marc Siegel 745b317e12 Allow helper methods defined in the block's context to call DSL methods
Previously, it turns out that this wasn't possible, which made
refactoring code that used Docile to extract common helper methods,
and re-use them in different blocks, a painful experience.

This change should make it possible to extract methods from blocks
into the context around the block, and have those extracted helper
methods still able to call methods on the DSL object.
2018-02-07 17:06:53 -05:00
Marc Siegel 6e37fb8132 Standardize on double-quoted strings 2018-01-14 19:15:09 -05:00
Andrew Meyer 02efcb2e7c Don't nest proxy contexts in execution environment
Fixes #10
2014-01-09 21:46:26 -06:00
Marc Siegel 41b7721f4b (cosmetic: replace eligible double quoted strings with single quotes) 2013-11-26 15:53:45 -05:00
Marc Siegel 60f2489d4a (documentation: fix misspelling and replace @yield with @param block) 2013-08-02 15:45:12 -04:00
Marc Siegel 67756fa69e Improve documentation 2013-07-29 00:14:15 -04:00
Marc Siegel d36dfa8b21 Refactor #exec_in_proxy_context into private module Execution 2013-07-29 00:06:43 -04:00