Class: PointBlank::Parsing::ULParser
- Inherits:
 - 
      NullParser
      
        
- Object
 - NullParser
 - PointBlank::Parsing::ULParser
 
 
- Defined in:
 - lib/mmmd/blankshell.rb
 
Overview
Unordered list block (group)
Instance Attribute Summary collapse
- 
  
    
      #preoff  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute preoff.
 
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
Instance Attribute Details
#preoff ⇒ Object (readonly)
Returns the value of attribute preoff.
      517 518 519  | 
    
      # File 'lib/mmmd/blankshell.rb', line 517 def preoff @preoff end  | 
  
Class Method Details
.begin?(line) ⇒ Boolean
      498 499 500  | 
    
      # File 'lib/mmmd/blankshell.rb', line 498 def self.begin?(line) line.match?(/\A {0,3}([-+*])(\s+)/) end  | 
  
Instance Method Details
#applyprops(block) ⇒ nil, Class
Close parser
      503 504 505 506 507  | 
    
      # File 'lib/mmmd/blankshell.rb', line 503 def applyprops(block) block.each do |child| child.properties["marker"] = @marker[-1] end end  | 
  
#consume(line, _parent = nil, **_hargs) ⇒ Array(String, Boolean)
Consume line markers
      510 511 512 513 514 515  | 
    
      # File 'lib/mmmd/blankshell.rb', line 510 def consume(line, _parent = nil, **_hargs) self.open(line) return [nil, true] unless continues?(line) [normalize(line), true] end  |