This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'tempfile' | |
# The DSL class. The render method simply takes a block, then executes the block in the scope of the DSL class. You can see | |
# a use of it in the next file. | |
module Keyd | |
class DSL | |
def self.render(&block) | |
d = new | |
d.instance_exec(&block) |