Class: Spectre::StringParsing::BlankParser
- Inherits:
-
RangeParser
- Object
- RangeParser
- Spectre::StringParsing::BlankParser
- Defined in:
- lib/spectre/string/primitives.rb
Overview
Matches spaces and tabs. Shortcut: blank_char
.
Instance Attribute Summary
Attributes included from Parser
Instance Method Summary collapse
-
#initialize ⇒ BlankParser
constructor
A new instance of BlankParser.
- #inspect ⇒ Object
Methods inherited from RangeParser
Methods included from Parser
#backtrack, #create_match, from_POD, #pre_skip?, #scan, #to_p
Constructor Details
#initialize ⇒ BlankParser
Returns a new instance of BlankParser.
168 169 170 |
# File 'lib/spectre/string/primitives.rb', line 168 def initialize super([" ", "\t"]) end |
Instance Method Details
#inspect ⇒ Object
172 173 174 |
# File 'lib/spectre/string/primitives.rb', line 172 def inspect "[blank_char]" end |