From: Pit Capitain Date: 2006-02-25T19:11:59+09:00 Subject: Re: recontextualizing a block (looking for deep magic) Phil Tomson schrieb: > > The other change I'm considering is hiding the explicit class > definition, like so: > ... > That would hide a little more 'Rubyness' behind the DSL curtain. If you want to hide even more of Ruby you could try to get rid of symbols: class RHDL class << self def method_missing(name, *) name end def inputs(*args) p [:inputs, *args] end def outputs(*args) p [:outputs, *args] end end end Class.new RHDL do inputs a, b outputs out end # => [:inputs, :a, :b] # => [:outputs, :out] In reality you'd have to do more than shown here, but I think it could work. Regards, Pit