From: Pit Capitain Date: 2008-11-03T18:22:03+09:00 Subject: Re: [ANN] RubyMacros 0.1.0 Released 2008/11/3 ara.t.howard : > hrrrrm. could we possibly use it to skin the > > self.ivar = value > > problem? Of course: irb(main):001:0> require "nolocal-spike" => true irb(main):002:0> class C irb(main):003:1> attr_accessor :a, :b, :c irb(main):004:1> def initialize &blk irb(main):005:2> instance_eval( &nolocal( &blk ) ) irb(main):006:2> end irb(main):007:1> end => nil irb(main):008:0> C.new do irb(main):009:1* a = b = 5 irb(main):010:1> c = a + 2 irb(main):011:1> end => # Two years ago I was experimenting with modifying the AST using plain Ruby. (On Windows, I couldn't use parsetree for example back then.) The code above is one of the results. The same should be easy with the actual libraries. Regards, Pit