Class: Arugula::SOLPart
Instance Method Summary collapse
Methods inherited from Part
Instance Method Details
#match(str, index, _match_data) ⇒ Object
171 172 173 174 |
# File 'lib/arugula/parts.rb', line 171 def match(str, index, _match_data) matches = (index == 0) || (str[index - 1] == "\n") [matches, index] end |
#to_s ⇒ Object
167 168 169 |
# File 'lib/arugula/parts.rb', line 167 def to_s '^' end |