class Arugula::DotPart

Public Instance Methods

match(str, index, _match_data) click to toggle source
# File lib/arugula/parts.rb, line 290
def match(str, index, _match_data)
  char = str[index]
  matches = char && char != "\n"
  [matches, index + (matches ? 1 : 0)]
end
to_s() click to toggle source
# File lib/arugula/parts.rb, line 286
def to_s
  '.'
end