you can do it like this:
def IF(condition)
  if condition
    yield
  end
end

IF(true){
 puts "yes"
}
-- 
Posted via http://www.ruby-forum.com/.