Class: Peggy::AtLeastOne

Inherits:
Multiple show all
Defined in:
lib/builder.rb,
lib/Copy of builder.rb

Overview

Matcher of 1 or more times.

Constant Summary

Constants inherited from Multiple

Multiple::MANY

Instance Attribute Summary

Attributes inherited from Multiple

#child, #range

Instance Method Summary collapse

Methods inherited from Multiple

#match

Methods inherited from Element

build, #match, #report

Constructor Details

#initializeAtLeastOne

Returns a new instance of AtLeastOne.



118
119
120
# File 'lib/builder.rb', line 118

def initialize
  super 1..MANY
end