[英]how to multiline comment in ruby rspec (watir or watir-webdriver) script?
I know "#" is for single line and in ruby, the multiline comment signal is =begin xxxx =end 我知道“#”用于单行,在ruby中,多行注释信号是= begin xxxx = end
but is doesn't work in watir/watir-webdriver +rspec script 但是在watir / watir-webdriver + rspec脚本中不起作用
describe "IAchecklist" do
=begin
xxxx
=end
end
so I know how to multiline comment ... 所以我知道如何多行注释...
Your =begin
and =end
have to start from beginning of the line(0 column). 你的
=begin
和=end
必须从行的开头(0列)开始。 Even if the code is nested. 即使代码是嵌套的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.