class Arugula::SOLPart

Public Instance Methods

match(str, index, _match_data) click to toggle source
# 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() click to toggle source
# File lib/arugula/parts.rb, line 178
def to_s
  '^'
end