Class: Peggy::AtLeastOne
- Defined in:
- lib/parse/builder.rb
Overview
Matcher of 1 or more times.
Constant Summary
Constants inherited from Multiple
Instance Attribute Summary
Attributes inherited from Multiple
Attributes included from OneChild
Instance Method Summary collapse
-
#initialize ⇒ AtLeastOne
constructor
A new instance of AtLeastOne.
-
#to_s ⇒ Object
Convert element to String.
Methods inherited from Multiple
Methods included from OneChild
Methods inherited from Element
Constructor Details
#initialize ⇒ AtLeastOne
Returns a new instance of AtLeastOne.
162 163 164 |
# File 'lib/parse/builder.rb', line 162 def initialize super 1..MANY end |
Instance Method Details
#to_s ⇒ Object
Convert element to String.
167 168 169 |
# File 'lib/parse/builder.rb', line 167 def to_s "#{wrap}+" end |