Class: Arugula::PlusPart
- Includes:
- Wrapping
- Defined in:
- lib/arugula/parts.rb
Instance Attribute Summary
Attributes included from Wrapping
Instance Method Summary collapse
Methods included from Wrapping
Methods inherited from Part
Instance Method Details
#match(str, index, match_data) ⇒ Object
204 205 206 207 208 209 210 211 |
# File 'lib/arugula/parts.rb', line 204 def match(str, index, match_data) has_matched = false loop do matches, index = wrapped.match(str, index, match_data) has_matched = true if matches return has_matched, index unless matches end end |
#to_s ⇒ Object
200 201 202 |
# File 'lib/arugula/parts.rb', line 200 def to_s "#{wrapped}+" end |