Class: Arugula::DotPart

Inherits:
Part
  • Object
show all
Defined in:
lib/arugula/parts.rb

Instance Method Summary collapse

Methods inherited from Part

all, inherited, type

Instance Method Details

#match(str, index, _match_data) ⇒ Object



290
291
292
293
294
# 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_sObject



286
287
288
# File 'lib/arugula/parts.rb', line 286

def to_s
  '.'
end