Class: Arugula::SOLPart
Instance Method Summary collapse
Methods inherited from Part
Instance Method Details
#match(str, index) ⇒ Object
153 154 155 156 |
# File 'lib/arugula/parts.rb', line 153 def match(str, index) matches = (index == 0) || (str[index - 1] == "\n") [matches, index] end |
#to_s ⇒ Object
149 150 151 |
# File 'lib/arugula/parts.rb', line 149 def to_s '^' end |