Class: Rsec::RepeatN
- Inherits:
-
Struct
- Object
- Struct
- Rsec::RepeatN
- Includes:
- Parser
- Defined in:
- lib/rsec/parsers/repeat.rb
Overview
matches exactly n.abs times repeat<br/>
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#n ⇒ Object
Returns the value of attribute n.
Attributes included from Parser
Instance Method Summary collapse
Methods included from Parser
#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base
54 55 56 |
# File 'lib/rsec/parsers/repeat.rb', line 54 def base @base end |
#n ⇒ Object
Returns the value of attribute n
54 55 56 |
# File 'lib/rsec/parsers/repeat.rb', line 54 def n @n end |