Have you ever wondered how those DSL’s in ruby managed to get rid of the requirement to pass a variable to a block to indicate the context of the enclosed block? An example of this in Rails route definitions where the blocks are simply just nested. My question was how does each block know what […]
Posts Tagged ‘programming’
An example of how to do a Ruby DSL with nested blocks and no block params required
Posted: December 15, 2011 by Steve in UncategorizedTags: programming, ruby