Class: Arugula::SOLPart
Instance Method Summary collapse
Methods inherited from Part
Instance Method Details
#match(str, index, _match_data) ⇒ Object
182 183 184 185 |
# File 'lib/arugula/parts.rb', line 182 def match(str, index, _match_data) matches = (index == 0) || (str[index - 1] == "\n") [matches, index] end |
#to_s ⇒ Object
178 179 180 |
# File 'lib/arugula/parts.rb', line 178 def to_s '^' end |