hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Tuesday

2005.11.29

One Small Flask of Metaprogramming Elixir #

by why in inspect

We could make metaprogramming easier for the common streetsfolk. I’m not giving a triumphant answer here. I’m just wondering what else you knobbly ducks out there have done like this.

So you have this class which defines a structure for scripts within a larger program (MouseHole in this case):

 class UserScript
   attr_accessor :title, :description, :version, :mount,
                 :register_uri, :rewrite
   def initialize
     @register_uri, @rewrite = [], {}
   end
 end

Continue to full post. (309 words)