Passing block to CLS method via Action


#1

Will this ever be supported?

// c#

public void Tag(Action action)
{
action();
}

// rb

tag do
puts ‘yay!’
end

Cheers,

Andrew.


#2

This should work:

tag Action.new { puts ‘foo’ }

Tomas