Class: Spectre::StringParsing::LowerParser
- Inherits:
-
RangeParser
- Object
- RangeParser
- Spectre::StringParsing::LowerParser
- Defined in:
- lib/spectre/string/primitives.rb
Overview
Matches lowercase letters. Shortcut: lower_char
.
Instance Attribute Summary
Attributes included from Parser
Instance Method Summary collapse
-
#initialize ⇒ LowerParser
constructor
A new instance of LowerParser.
- #inspect ⇒ Object
Methods inherited from RangeParser
Methods included from Parser
#backtrack, #create_match, from_POD, #pre_skip?, #scan, #to_p
Constructor Details
#initialize ⇒ LowerParser
Returns a new instance of LowerParser.
235 236 237 |
# File 'lib/spectre/string/primitives.rb', line 235 def initialize super( ('a'..'z').to_a ) end |
Instance Method Details
#inspect ⇒ Object
239 240 241 |
# File 'lib/spectre/string/primitives.rb', line 239 def inspect "[lower_char]" end |