class PseudoHiki::BlockParser::BlockElement::VerbatimNode

Attributes

in_block_tag[RW]

Public Instance Methods

add_leaf(line, blockparser) click to toggle source
Calls superclass method
# File lib/pseudohiki/blockparser.rb, line 207
def add_leaf(line, blockparser)
  return @stack.pop if VERBATIM_END.match? line
  return super(line, blockparser) unless @in_block_tag
  line = " #{line}" if BlockNodeEnd.head_re.match? line and not @in_block_tag
  @stack.push VerbatimLeaf.create(line, @in_block_tag)
end