-2

I am trying to add a few >>> DocStrings. Here is a piece of my code:

def service_destroy(service)

    =begin
        service_check(service) retun 0 || 1
        1 if service up and running
        0 otherwise
    =end

    ...

According to documentation and other questions, it must be ignored, but I have a syntax error:

syntax error, unexpected '='
    =begin
     ^
Community
  • 1
  • 1
setevoy
  • 4,374
  • 11
  • 50
  • 87

1 Answers1

3

Start and end of multiline comments must be placed at the beginning of a line.

sawa
  • 165,429
  • 45
  • 277
  • 381