class Arugula::EOLPart

Public Instance Methods

match(str, index, _match_data) click to toggle source
# File lib/arugula/parts.rb, line 171
def match(str, index, _match_data)
  matches = str[index] == "\n" || index == str.size
  return true, index if matches
  [false, index]
end
to_s() click to toggle source
# File lib/arugula/parts.rb, line 167
def to_s
  '$'
end