2

Need to add flow of my code in comments at the starting of class. Found some symbols here.

I did something like this inside my .rb file.

=begin
A
⬇
B
⬇
C
=end

It is not giving me any error but I need to be sure. Is it safe ? Nothing should happen on deployment day :P

Eyeslandic
  • 14,553
  • 13
  • 41
  • 54
vikas95prasad
  • 1,234
  • 1
  • 12
  • 37
  • Yes, that is safe. `=begin` starts a multiline comment and there is nothing wrong with having those symbols in a comment. – spickermann Jun 07 '20 at 18:06
  • Normally you just prefix lines with `#` and it's fine. The `=begin`, `=end` style is a lot more obscure. – tadman Jun 07 '20 at 23:21

1 Answers1

2

Ruby permits defining source file encoding.

If your characters are valid in that encoding, you should be fine.

D. SM
  • 13,584
  • 3
  • 12
  • 21