Class: Arugula::SOLPart

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



182
183
184
185
# File 'lib/arugula/parts.rb', line 182

def match(str, index, _match_data)
  matches = (index == 0) || (str[index - 1] == "\n")
  [matches, index]
end

#to_sObject



178
179
180
# File 'lib/arugula/parts.rb', line 178

def to_s
  '^'
end