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



219
220
221
222
# File 'lib/arugula/parts.rb', line 219

def match(str, index, _match_data)
  matches = index < str.size
  [matches, index + (matches ? 1 : 0)]
end

#to_sObject



215
216
217
# File 'lib/arugula/parts.rb', line 215

def to_s
  '.'
end