Method: RPEG#Cs

Defined in:
lib/rpeg/rpeg.rb

#Cs(patt) ⇒ Object

From LPEG:

Creates a substitution capture, which captures the substring of the subject that matches patt, with substitutions. For any
capture inside patt with a value, the substring that matched the capture is replaced by the capture value (which should be a
string). The final captured value is the string resulting from all replacements.


271
272
273
# File 'lib/rpeg/rpeg.rb', line 271

def Cs(patt)
  Pattern.new(Pattern::CAPTURE, P(patt), capture: Capture::SUBST)
end