Toggle blocks in ruby.