Class: Arugula::DotPart
Instance Method Summary collapse
Methods inherited from Part
Instance Method Details
#match(str, index, _match_data) ⇒ Object
290 291 292 293 294 |
# File 'lib/arugula/parts.rb', line 290 def match(str, index, _match_data) char = str[index] matches = char && char != "\n" [matches, index + (matches ? 1 : 0)] end |
#to_s ⇒ Object
286 287 288 |
# File 'lib/arugula/parts.rb', line 286 def to_s '.' end |