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) ⇒ Object



153
154
155
156
# File 'lib/arugula/parts.rb', line 153

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

#to_sObject



149
150
151
# File 'lib/arugula/parts.rb', line 149

def to_s
  '^'
end