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.

This should work:

tag Action.new { puts ‘foo’ }

Tomas

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs