In article <44002D57.7070402 / capitain.de>,
Pit Capitain  <pit / capitain.de> wrote:
>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.
>

Oh, I like that!  I think I'll give it a try.

Phil