Class: Arugula::DotPart
Instance Method Summary collapse
Methods inherited from Part
Instance Method Details
#match(str, index, _match_data) ⇒ Object
219 220 221 222 |
# File 'lib/arugula/parts.rb', line 219 def match(str, index, _match_data) matches = index < str.size [matches, index + (matches ? 1 : 0)] end |
#to_s ⇒ Object
215 216 217 |
# File 'lib/arugula/parts.rb', line 215 def to_s '.' end |