我们可以在 ruby 个文件的注释中添加特殊字符吗?
Can we add special characters inside comments of ruby files?
需要在 class 开头的注释中添加我的代码流程。
找到了一些符号 here.
我在 .rb
文件中做了类似的事情。
=begin
A
⬇
B
⬇
C
=end
它没有给我任何错误,但我需要确定。安全吗?
部署日不应发生任何事情:P
Ruby 允许定义 source file encoding.
如果您的字符在该编码中有效,您应该没问题。
需要在 class 开头的注释中添加我的代码流程。 找到了一些符号 here.
我在 .rb
文件中做了类似的事情。
=begin
A
⬇
B
⬇
C
=end
它没有给我任何错误,但我需要确定。安全吗? 部署日不应发生任何事情:P
Ruby 允许定义 source file encoding.
如果您的字符在该编码中有效,您应该没问题。