Class: Spectre::StringParsing::LowerParser

Inherits:
RangeParser
  • Object
show all
Defined in:
lib/spectre/string/primitives.rb

Overview

Matches lowercase letters. Shortcut: lower_char.

Instance Attribute Summary

Attributes included from Parser

#node

Instance Method Summary collapse

Methods inherited from RangeParser

#negation, #scan

Methods included from Parser

#backtrack, #create_match, from_POD, #pre_skip?, #scan, #to_p

Constructor Details

#initializeLowerParser

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

#inspectObject



239
240
241
# File 'lib/spectre/string/primitives.rb', line 239

def inspect
    "[lower_char]"
end