3 ms·
On the other hand, the Ruby equivalent is def in_context(*args) setup_context yield if block_given? ensure teardown_context end I guess you could build
by shubber 15y ago
On the other hand, the Ruby equivalent is
def in_context(*args)
setup_context
yield if block_given?
ensure
teardown_context
end
I guess you could build a special class, but why?