This should work:
tag Action.new { puts 'foo' }
Tomas
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Peters
Sent: Thursday, October 30, 2008 12:00 AM
To: [email protected]
Subject: [Ironruby-core] Passing block to CLS method via Action
Will this ever be supported?
// c#
public void Tag(Action action)
{
action();
}
// rb
tag do
puts 'yay!'
end
Cheers,
Andrew.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core