Class: TextExtractor::Directives::Maybe
- Defined in:
- lib/text_extractor/directives/classes.rb
Overview
current line or group occurs 0 or 1 times
Instance Attribute Summary
Attributes inherited from Directive
Instance Method Summary collapse
Methods inherited from Directive
Constructor Details
This class inherits a constructor from TextExtractor::Directives::Directive
Instance Method Details
#call ⇒ Object
76 77 78 |
# File 'lib/text_extractor/directives/classes.rb', line 76 def call state.current = ['(?:', state.current, ')?'] end |