From: "Peña, Botp" Date: 2007-02-07T12:59:22+09:00 Subject: Re: Comment for partial line On Behalf Of Xia __: # i dont want to turn this thread into a debate about # programming design, # i just want to know if ruby offers a fairly simple syntax # function which is available in many languages. the ff is just a kludge. i enclose them text inside single quotes, or %< >, or %<-- --> irb(main):041:0> print "Hello, "; 'this wont run; puts "NO!"'; print "world\n" Hello, world => nil irb(main):042:0> print "Hello, "; %; print "world\n" Hello, world => nil irb(main):046:0> print "Hello, "; %<--NONONO!-->; print "world.\n" Hello, world. => nil Hey, about an rcr, use "--" or "++" as inline commenters :)) But sincerely, i have a phobia of inline comments. I once had a bug that took me a day (24hrs) to find because of a very slick inline comment i inserted... arrghh.. but that was then. Now, unit test/tdd/bdd/rspec/ioc rocks. no fear :) kind regards -botp