Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def wrap(p, &block)
- Array.new(2) { c }.insert(1, Proc.new ).compact.each {|e| e.call }
- end
- wrap(Proc.new { toggle_method }) { sandwich_filling }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement