Class: PointBlank::Parsing::OLParser
- Inherits:
 - 
      NullParser
      
        
- Object
 - NullParser
 - PointBlank::Parsing::OLParser
 
 
- Defined in:
 - lib/mmmd/blankshell.rb
 
Overview
Ordered list block (group)
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #applyprops(block)  ⇒ nil, Class 
    
    
  
  
  
  
  
  
  
  
  
    
Close parser.
 - 
  
    
      #consume(line, _parent = nil, **_hargs)  ⇒ Array(String, Boolean) 
    
    
  
  
  
  
  
  
  
  
  
    
Consume line markers.
 
Methods inherited from NullParser
#close, #initialize, #parsed_content
Constructor Details
This class inherits a constructor from PointBlank::Parsing::NullParser
Class Method Details
.begin?(line) ⇒ Boolean
      598 599 600  | 
    
      # File 'lib/mmmd/blankshell.rb', line 598 def self.begin?(line) line.match?(/\A {0,3}(\d+)([).])(\s+)/) end  | 
  
Instance Method Details
#applyprops(block) ⇒ nil, Class
Close parser
      603 604 605 606 607  | 
    
      # File 'lib/mmmd/blankshell.rb', line 603 def applyprops(block) block.each do |child| child.properties["marker"] = @mark[-1] end end  | 
  
#consume(line, _parent = nil, **_hargs) ⇒ Array(String, Boolean)
Consume line markers
      610 611 612 613 614 615  | 
    
      # File 'lib/mmmd/blankshell.rb', line 610 def consume(line, _parent = nil, **_hargs) self.open(line) return [nil, true] unless continues?(line) [normalize(line), true] end  |