Class: AsciidoctorVaped::Parser::Blocks::Comment
- Inherits:
-
BaseNode
- Object
- BaseNode
- AsciidoctorVaped::Parser::Blocks::Comment
show all
- Defined in:
- lib/asciidoctor_vaped/parser/blocks/common/comment.rb
Instance Method Summary
collapse
Methods inherited from BaseNode
#handle, #initialize
Instance Method Details
#match?(context) ⇒ Boolean
9
10
11
|
# File 'lib/asciidoctor_vaped/parser/blocks/common/comment.rb', line 9
def match?(context)
context.reader.peek&.start_with?("//")
end
|
#parse(context) ⇒ Object
13
14
15
|
# File 'lib/asciidoctor_vaped/parser/blocks/common/comment.rb', line 13
def parse(context)
context.reader.peek == "////" ? context.reader.read_delimited("////") : context.reader.read
end
|