def with(obj, &blk)
obj.instance_eval(&blk)
obj
end

arr = with [] do
push 1
push 2
end

p arr #=> [1, 2]