Class: PointBlank::Parsing::ULElementParser
- Inherits:
 - 
      NullParser
      
        
- Object
 - NullParser
 - PointBlank::Parsing::ULElementParser
 
 
- Defined in:
 - lib/mmmd/blankshell.rb
 
Overview
Unorder list block (element)
Class Method Summary collapse
Instance Method Summary collapse
- 
  
    
      #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
      551 552 553  | 
    
      # File 'lib/mmmd/blankshell.rb', line 551 def self.begin?(line) line.match?(/\A {0,3}([-+*])(\s+)/) end  | 
  
Instance Method Details
#consume(line, parent = nil, **_hargs) ⇒ Array(String, Boolean)
Consume line markers
      556 557 558 559 560 561 562 563  | 
    
      # File 'lib/mmmd/blankshell.rb', line 556 def consume(line, parent = nil, **_hargs) @parent ||= parent return [nil, true] unless continues?(line) self.open(line) [normalize(line), true] end  |