Class: Arugula::StarPart
- 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) ⇒ Object
172 173 174 175 176 177 |
# File 'lib/arugula/parts.rb', line 172 def match(str, index) loop do matches, index = wrapped.match(str, index) return true, index unless matches end end |
#to_s ⇒ Object
168 169 170 |
# File 'lib/arugula/parts.rb', line 168 def to_s "#{wrapped}*" end |