Class: Peggy::Optional
- Defined in:
- lib/builder.rb,
lib/Copy of builder.rb
Overview
Matcher of 0 or 1 time.
Constant Summary
Constants inherited from Multiple
Instance Attribute Summary
Attributes inherited from Multiple
Instance Method Summary collapse
-
#initialize ⇒ Optional
constructor
A new instance of Optional.
Methods inherited from Multiple
Methods inherited from Element
Constructor Details
#initialize ⇒ Optional
Returns a new instance of Optional.
125 126 127 |
# File 'lib/builder.rb', line 125 def initialize super 0..1 end |