Method: Erb::Comment::CommentCompiler#compile_etag

Defined in:
lib/erb/comment.rb

#compile_etag(etag, _, scanner) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/erb/comment.rb', line 33

def compile_etag(etag, _, scanner)
  case etag
  when '--#>'
    scanner.stag = nil
    @in_comment = false
  else
    super unless @in_comment
  end
end