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
# the entire concept of building a dsl means defining domain terms on an | |
# object, it's so much simpler to start with the dsl itself being a blank | |
# slate that simply relays certain methods to a scope | |
# | |
class DSL | |
instance_methods.each do |m| | |
undef_method m unless m[%r/\A__|\Aobject_id\Z/] | |
end |
OlderNewer