Class: AsciidoctorVaped::Parser::Blocks::ElementAttributes

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/asciidoctor_vaped/parser/blocks/metadata/element_attributes.rb

Constant Summary collapse

PATTERN =
/\A\[(.+)\]\z/

Instance Method Summary collapse

Methods inherited from BaseNode

#handle, #initialize, #match?

Constructor Details

This class inherits a constructor from AsciidoctorVaped::Parser::Blocks::BaseNode

Instance Method Details

#parse(context) ⇒ Object



12
13
14
# File 'lib/asciidoctor_vaped/parser/blocks/metadata/element_attributes.rb', line 12

def parse(context)
  context.add_pending_attributes parse_attributes(context.reader.read.match(PATTERN)[1])
end