class PseudoHiki::BlockParser::NestedBlockLeaf

Public Class Methods

create(line) click to toggle source
# File lib/pseudohiki/blockparser.rb, line 111
def self.create(line)
  m = head_re.match(line)
  super(line).tap {|leaf| leaf.level = m[0].length }
end
with_depth?() click to toggle source
# File lib/pseudohiki/blockparser.rb, line 116
def self.with_depth?
  true
end

Public Instance Methods

push_self(stack) click to toggle source
# File lib/pseudohiki/blockparser.rb, line 120
def push_self(stack)
  super(stack)
  BlockParser.assign_node_id(self[0], self)
end